Return JSON in 500 response