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 9184665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:06:33+00:00 2026-06-17T19:06:33+00:00

I am developing a iOS app like eBay. For this web service developer is

  • 0

I am developing a iOS app like eBay. For this web service developer is using Magento. He developed the web service for Login. Following are the situations :

1) If I send valid login credentials , he returns me logged in used info in response + a flag as result = true & in this case http status code is 200.

2) If I send wrong password , he returns me a flag as result = false & http status code is 200.

Basically I don’t want to depend on result flag because , if developer changed the result flag name then iOS app can’t recognize that. So I want to follow standards which is a http status codes.

My question is , in 2nd situation is it right to send 200 as http status code ? I think he should send me 401 ? Correct me if I am wrong.
If I am right , is there any way to send http status code from php code so that I can check the http status code on iOS side ?

  • 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-17T19:06:34+00:00Added an answer on June 17, 2026 at 7:06 pm

    My question is , in 2nd situation is it right to send 200 as http status code ? I think he should send me 401 ? Correct me if I am wrong.

    That depends on your needs. Write the specification, then implement accordingly. If you say 401, take 401.

    If I am right , is there any way to send http status code from php code so that I can check the http status code on iOS side ?

    Sure, there is. Luckily this has been asked before so the info is already on this website and we do not need to answer it again.

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

Sidebar

Related Questions

I'm developing an iOS app that accesses Web-Services, I would like to know if
I'm developing an ecommerce iOS app by using magento api. Currently I'm trying to
I'm developing an IOS app using phone gap and I'd like to use node.js
I'm developing an iOS app using Core Plot headers. I have different UI for
I'm developing an iOS app. Its working properly on simulator. I'm using phonegap and
I am developing and iOS app with both positions, Landscape and Portrait. Using iOS5,
I'm developing a web app for iOS devices, and want to have a header
I'm developing a iOs app for iPad. I would like to delete two objects
I am developing an app for iOS and I'd like to have all of
I am developing an iOS app of which my clients would like roughly 50

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.