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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:27:00+00:00 2026-06-07T01:27:00+00:00

What are suitable response codes and messages for: fields submitted the wrong way (URL

  • 0

What are suitable response codes and messages for:

  1. fields submitted the wrong way (URL parameters vs body) or missing fields
  2. fields getting invalid values (string instead of numbers, timestamp in future)
  3. some characters like ?, / break stuff in URL parameters
  4. Actual failures: invalid credentials, repeating already-done action

At present, we use 400 for all.

  • 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-07T01:27:03+00:00Added an answer on June 7, 2026 at 1:27 am

    Cases 1, 2 and 3 in your question are essentially syntactic errors in the request

    => 400 Bad Request

    (RFC 2616 says: The request could not be understood by the server due to malformed syntax.)

    As to case 4:

    a. Invalid credentials

    => 401 Unauthorized

    b. Repeating already-done action

    => 403 Forbidden

    (The RFC says: The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated.)

    But then 409 Conflict and 410 Gone make sense when trying to modify stuff incorrectly (PUT) or accessing resources already deleted, respectively.

    And here is RFC 2616 Section 10.

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

Sidebar

Related Questions

This may have been answered elsewhere but I could not find a suitable response.
I'm looking for a way to format (as in whitespace, newlines where suitable) a
What's the best way to implement sunburnt's highlight response into an application (django based,
Can anyone suggest a suitable way of figuring out a pieces allowable moves on
I have looked on here and anddev for a suitable response, but haven't found
Is Drools suitable for writing rules for Stemming and/or POS tagging ? Suggestions for
Which is the most suitable tree data structure to model a hierarchical (containment relationship)
Is there a term/suitable name for an object that will be saved in database
I'm looking for suitable .NET class that allows me to store a large number
Cloudberry Explorer for OpenStack storage is suitable client for OpenStack-Swift and it is found

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.