Created
August 25, 2011 04:41
-
-
Save timlinquist/1169992 to your computer and use it in GitHub Desktop.
Are HTTP Status codes magic numbers?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if provider.save | |
| render :json=>provider.to_json, :status=>200 | |
| else | |
| render :json=>provider.errors.to_json, :status=>400 | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment