Skip to content

Instantly share code, notes, and snippets.

@timlinquist
Created August 25, 2011 04:41
Show Gist options
  • Select an option

  • Save timlinquist/1169992 to your computer and use it in GitHub Desktop.

Select an option

Save timlinquist/1169992 to your computer and use it in GitHub Desktop.
Are HTTP Status codes magic numbers?
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