Return errors formatted as JSON, with HTTP 400.