Add HTTP 500 status for API error response.