JSON response for 400 and 500 errors in Rails · HackerTrans