title: HTTP status code for this case (400 or 422)
body: <p>I have some method that looks like this</p>
  <pre><code>def some_method
     if params[&quot;status&quot;] == &quot;good&quot;
        some action
        render json: {message: &quot;action success&quot;}, status: 200
     else 
        render json: {message: &quot;The status is not good, try again later when the status is good&quot;}, status: 200
     end
  end
  </code></pre>
  <p>You see when the status is not good, currently i'm returning 200 status code, what is the best status code for this case. Is it 400 or 422?</p>