Add 500 check for registry api call Upstream-commit: 46aea60fb0f52aba4281f742d263ee7a5eab3b98 Component: engine