Saturday, October 27, 2012

Re: [Rails] JSON response , error message

On Sun, Oct 28, 2012 at 12:26 AM, Saravanan P
<saravanan.p@shriramits.com> wrote:
> render :json => { :errors => @example.errors.full_messages }, :status => 422

Why are you sending a 422? If you really want to stick in the 400
range it would be more suitable to send a 409 conflict since it
literally is a conflict but some just prefer to stick to a generic
500.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate