Add 500 check for registry api call
Add 500 check for registry api call

Partially Addresses #14326

Signed-off-by: Ankush Agarwal <fbce221e53f28a6368ebb5e0aa2ee1c79ff12e9e@gmail.com>

thaJeztah/distribution,thaJeztah/distribution