What is the better way of handling HTTP responce statuses?
<pre><code>HttpResponse response = mHttpClient.execute(mHttpGet);

    if(response.getStatusLine().getStatusCode() == 201){

    }
    .....
</code></pre>

<p>I have different statuses and I need to handle all them to show later for appropriate status appropriate dialog message. </p>

<p>What is the better way of handling HTTP response statuses?</p>
