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

  • Home
  • SEARCH
  • 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 6950941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:09:20+00:00 2026-05-27T14:09:20+00:00

I am designing a RESTful API and am using the usual HTTP status codes

  • 0

I am designing a RESTful API and am using the usual HTTP status codes like 200, 404, 500, etc.

Given the situation where occasionally the API will require additional data. When this event arises it needs to respond with a relevant status code so that the client application can present the relevant user interface.

Example:

  1. User fills in form and hits submit (using AJAX)
  2. Server sends response with some status code to indicate that further information is required which is accompanied with additional user interface.
  3. Additional user interface is displayed
  4. User resubmits form

I have this working with a 200 status code, but I would prefer to use a different status code so that my AJAX handler can detect and handle this scenario automatically.

Are there any relevant status codes or would I need to use a sub status code which is returned as a part of my JSON response?

  • 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-05-27T14:09:21+00:00Added an answer on May 27, 2026 at 2:09 pm

    I would go with a 400 Bad Request, since there is more data needed.

    Alternatively, a 100 Continue could also work.

    Either of those codes indicates that more info is needed.

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

Sidebar

Related Questions

Designing my RESTful API, I would like use following URI http://[HOST]/[PLANET]/[LAT];[LONG] e.g. http://myserver/earth/50.2;29.1 What
I am designing RESTful Api's and would like some advice on designing an API
I am designing a RESTful API and I would like to know what the
I'm currently (I try to) designing a RESTful API for a social network. But
We're in the early stages of designing a RESTful/resource-oriented web service API for a
I am designing an RESTful API for our product and have encountered the need
I'm designing a hypermedia API, yes, a RESTful API, with the hypertext constraint. Each
I am designing a RESTful API for a booking application and was quite happy
When designing a RESTful API that uses a datastore that makes use of auto-generated
I am in the process of creating a RESTful API. I read http://microformats.org/wiki/rest/urls but

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.