I can't think of very many tech stacks where an error inside the API couldn't be trapped and responded with a standard json response.