On Sun, Oct 28, 2012 at 12:26 AM, Saravanan P
<saravana...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to