Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8354413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:32:26+00:00 2026-06-09T09:32:26+00:00

In Android we can use getReasonPhrase() in HTTP Client: HttpResponse response = httpClient.execute(getRequest); System.print.out(response.getStatusLine().getReasonPhrase());

  • 0

In Android we can use getReasonPhrase() in HTTP Client:

HttpResponse response = httpClient.execute(getRequest);
System.print.out(response.getStatusLine().getReasonPhrase());

Which can be ok, Not Found, Created or whatever from Web Service.

How we can get it in Objective-C ?

This is the way that I could receive the status Code:

NSURLResponse *resp
NSHTTPURLResponse* httpResponse = (NSHTTPURLResponse*)resp;
int responseStatusCode = [httpResponse statusCode];
NSLog(@"%i", responseStatusCode);

How about getReasonPhrase()?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:32:28+00:00Added an answer on June 9, 2026 at 9:32 am
    NSString *reasonString = [NSHTTPURLResponse localizedStringForStatusCode:responseStatusCode];
    

    Cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The documentation ( http://developer.android.com/guide/topics/manifest/manifest-element.html#uid ) only states I can't use raw strings and the
Has anyone built a XMPP client for android? I know you can use the
i can use an XML file like below <set xmlns:android=http://schemas.android.com/apk/res/android android:interpolator=@android:anim/decelerate_interpolator> <translate android:fromXDelta=100% android:toXDelta=0%
When a button is pressed in Android you can use an setOnClickListener to execute
I have an android.graphics.bitmap and an android.net.Uri both of these I can use anyway
How can I use a different Android sdk and resolution simulator with testing use
How can we use Web services in Android Applications?
I can not use content://sms? Works on all Android devices? I'm using SmsManager but
R class on android has it's limitations. You can't use the resources dynamically for
im wondering if we can develop our android app in any computer we use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.