DEV: Use more specific error responses (PR #9472)

422 "Sorry, an error has occurred." isn’t always the best choice. :wink:

Fixes a bunch of render_json_error warnings.

GitHub

Nice improvements! I always like better error handling.