http-status-codes Questions

2

We have REST API endpoints that all users are free to use and other endpoints that users can use if they have explicitly enabled and paid for some specific feature. What should be the correct stat...
Eiser asked 29/8, 2019 at 10:52

3

Solved

Question How to modify the Status Code text (description/title)? Example For example: I want to change 200 (Ok) to 200 (My Custom Text) Desciption I want to create a HTTP response with custom ...
Nur asked 6/4, 2016 at 21:29

2

Solved

I read What HTTP status response code should I use if the request is missing a required parameter? but it did not specifically ask about headers and there didn't seem to be a consensus. The contex...

2

Solved

I have an API that, upon a client's POST request: Parse the client's request Do stuff with the data in the request Send a request to a remote server Receives a response from the remote server Do ...
Cami asked 30/4, 2018 at 13:29

4

Solved

I just migrated an application to Spring Boot 3 and before the migration I used HttpStatus to obtain more details about the error message that a certain web client returned with the gerReasonPhrase...
Boydboyden asked 20/12, 2023 at 16:40

10

Solved

I'm curious what's the most appropriate HTTP status code for an "item does not exist" page. If the page itself doesn't exist, I'll obviously use 404. However, one of my pages has a userid argument...
Diffractive asked 9/4, 2011 at 11:44

3

Solved

What's the difference between HTTP 301 and 308 status codes? 301 (Moved Permanently): This and all future requests should be directed to the given URI. 308 (Permanent Redirect): The request and a...

2

Solved

I have discovered that some HTTP status codes, like 304, contain no message body and are terminated by CRLF. Is there a comprehensive list of such codes? So far I have got: 100-199, 204, and 304. A...
Misfortune asked 25/12, 2011 at 7:47

5

Solved

I have a great conceptual discussion with my coworkers about the use of Location header in 202 Accepted response. The story began analyzing the behavior of PHP header() function from here. The inte...
Customhouse asked 5/10, 2014 at 3:3

1

I run a simple command against Azure Table Storage: var operation = TableOperation.InsertOrReplace(entity); await cloudTable.ExecuteAsync(operation); Now the result that is returned by ExecuteAs...
Consentient asked 19/2, 2019 at 11:39

9

Is 418 "I'm a teapot" really an HTTP response code? There are various references to this on the internet, including in lists of response codes, but I can't figure out whether it's a weird joke.
Limitative asked 14/9, 2018 at 22:43

5

Solved

Let's say I have a simple (Jersey) REST resource as follows: @Path("/foos") public class MyRestlet extends BaseRestlet { @GET @Path("/{fooId}") @Produces(MediaType.APPLICATI...
Armalda asked 10/11, 2014 at 14:5

10

Solved

I'm creating an application that has integrations with third party applications. To do this, the logged in user submits an API key for the third party integration. In the case that the API key ...
Corvus asked 19/11, 2019 at 23:36

4

Solved

I am trying to create a service that has 2 dependencies. One of the dependencies is internally managed while the 2nd requires an external http outbound call to a third party API. The sequence requi...
Rah asked 10/9, 2013 at 2:27

6

Solved

I am building a RESTful protocol for Dynamic Carpooling applications, for my Computer Science thesis. In the Protocol I also have to formally specify the HTTP status code for each operation. I've...
Stackhouse asked 23/8, 2010 at 12:24

10

Solved

I am building an application with a REST-based API and have come to the point where I am specifying status codes for each requests. What status code should i send for requests failing validation or...
Farce asked 20/7, 2010 at 13:3

6

When a TCP connection gets cancelled by the client while making a HTTP request, I'd like to stop doing any work on the server and return an empty response. What HTTP status code should such a respo...
Dyspnea asked 15/9, 2017 at 8:3

4

It is unclear to me when you should and should not return a HTTP 412: Precondition Failed, error for a web service? I am thinking of using it when validating data. For example, if a client POST's X...
Unsightly asked 20/3, 2011 at 15:40

4

Solved

This is a pretty straight forward test, but I can't seem to get it right. I want to check which users can login and perform actions (it's part of a larger suite of tests), but the very first step ...
Enyedy asked 15/9, 2014 at 0:51

2

Solved

What is the most appropriate HTTP status code to give to a client to mean "your request is fine, but it is still in progress; check back shortly in the exact same place." For example, say the clie...
Hau asked 12/2, 2013 at 3:35

7

I need to get the status code of the following http call and return it as a string //This method must return the status of the http response confirmEmail(mailToken):Observable<String>{ ret...
Werby asked 28/4, 2017 at 14:49

10

Solved

Why am I getting a HttpStatusCode of 0 if I point the service my client is connecting to to a bad URL. My statusCodeAsInt is showing up as a 0. Why is it not showing up as a 404 and being handled?...
Unsay asked 14/1, 2016 at 17:22

22

Solved

For a web page that exists, but for which a user does not have sufficient privileges (they are not logged in or do not belong to the proper user group), what is the proper HTTP response to serve? ...

6

Solved

I have an application that sends messages to users. In a POST request, an XML string is transferred that consists of all the users that should receive that particular message. If any of the users i...
Renfrew asked 12/12, 2011 at 10:33

5

Solved

I've written an API in a framework based on ZF2 (Zend Framework 2) called Apigility. My Service can query 3rd party API's. Once in a while, I get back a 500 error message.. either due to expired t...
Ardeha asked 22/8, 2014 at 20:20

© 2022 - 2024 — McMap. All rights reserved.