JSON response for 400 and 500 errors in Rails
rohit-sharma.in