Ruby Build a Rails API Coding the API Better JSON Messages

Pinnapong Silpsakulsuk
Pinnapong Silpsakulsuk
4,144 Points

Wrong http status in the sample code

According to the sample code. In the else case instead of returning http status 500 it returns http status code 200 with status: 500 in json body