Ensure errors from MapIt are returned as 400 / 404 / 500 appropriately
Ensure errors from MapIt are returned as 400 / 404 / 500 appropriately

Errors from MapIt views are raised as ViewException instances, and you
need to have MapIt's ViewExceptionMiddleware [1] installed for these to be
turned into the appropriate HTTP error response.

[1] https://github.com/mysociety/mapit/blob/329e452c/mapit/middleware/view_error.py

mysociety/pombola,mysociety/pombola,mysociety/pombola,mysociety/pombola,mysociety/pombola,mysociety/pombola