http-status-codes Questions
4
Solved
According to https://www.rfc-editor.org/rfc/rfc9110.html#name-options the only response ever mentioned regarding an HTTP OPTIONS request is a 200. However, there seem to be cases such as when the c...
Silvie asked 5/2, 2013 at 8:22
8
Solved
I have a site that is mainly showing a paged list of content (articles, data element's, etc.), and I'm wondering about returning HTTP 404 when user navigates outside of the available list range (eg...
Dardan asked 31/3, 2010 at 14:3
3
Solved
The 425 "Too Early" status code's description:
Indicates that the server is unwilling to risk processing a request that might be replayed
How is it used in a real world scenario? Exampl...
Gavingavini asked 12/3, 2022 at 8:33
22
For some reason, while using AJAX (with my dashcode developed application) the browser just stops uploading and returns status codes of 0. Why does this happen?
Dunfermline asked 4/1, 2010 at 16:35
2
Solved
I am looking for a correct status code to send for a gneral failure through an api.
The exact scenario is failing to add an product to a shopping cart.
The failure could happen for a large number...
Fundamentalism asked 5/6, 2013 at 16:23
2
Solved
I have a couple of questions around similar concern:
I'm making a call to EmailServer and using Polly Policy to WaitAndRetry. But I would like the Retry to happen only for specific timeouts: 5xx an...
Inhere asked 3/4, 2020 at 19:19
6
Solved
I have developed a PHP web app. I am giving an option to the user to update multiple issues on one go. In doing so, sometimes the user is encountering this error. Is there any way to increase the l...
Hyperbaric asked 23/5, 2010 at 11:50
10
Solved
If I return an object:
return Response::json([
'hello' => $value
]);
the status code will be 200. How can I change it to 201, with a message and send it with the json object?.
I don't know ...
Hygrostat asked 30/6, 2015 at 6:30
13
Solved
I have tried:
app.get('/', function(req, res, next) {
var e = new Error('error message');
e.status = 400;
next(e);
});
and:
app.get('/', function(req, res, next) {
res.statusCode = 400;
va...
Seljuk asked 12/5, 2012 at 12:17
9
Solved
I'm trying to figure out what the correct status code to return on different scenarios with a "REST-like" API that I'm working on. Let's say I have an end point that allows POST'ing purch...
Ascomycete asked 21/4, 2013 at 17:13
3
Solved
I'm using OkHttp to get the content of some websites.
However, I'm not able to get the Http-Status Code from the response.
My Java-Code:
OkHttpClient client = new OkHttpClient();
Request request...
Caceres asked 1/6, 2014 at 13:46
9
I want to check if a page returns the status code 401. Is this possible?
Here is my try, but it only returns 0.
$.ajax({
url: "http://my-ip/test/test.php",
data: {},
complete: function(xhr, s...
Towland asked 2/6, 2010 at 8:9
4
Solved
I have a page on my web site that reports on the health of the site and sets an HTTP 200 status code is everything is okay. This page is used by an external monitoring program to check that the sit...
Rechaba asked 16/9, 2009 at 17:15
8
Solved
I want to check whether a website is up or down at a particular instance using PHP. I came to know that curl will fetch the contents of the file but I don't want to read the content of the website....
Cambrian asked 5/1, 2011 at 18:20
6
Solved
I have several pages designed to be called with AJAX - I have them return an abnormal status code if they can't be displayed, and my javascript will show an error box accordingly.
For example, if ...
Fleck asked 26/2, 2012 at 16:29
3
Solved
Sometimes (when the resource is requested too often) I'm intercepting the presentation of a (HTML) resource with a captcha. The interception doesn't produce any redirection. It happens all at the s...
Hofer asked 24/10, 2014 at 12:0
10
Solved
I am thinking 412 (Precondition Failed) but there may be a better standard?
Spanishamerican asked 16/6, 2010 at 3:19
5
Solved
A similar question is posted here: What's an appropriate HTTP status code to return by a REST API service for a validation failure?
The answer in the thread above states that "For instance if ...
Simmer asked 24/9, 2015 at 2:56
2
I want to simulate a fake 404 status code from the backend to see how my website will behave.
I don't want to mock fake response status in the code I would like to use some tools.
Cause sometimes I...
Ivyiwis asked 19/6, 2018 at 7:48
2
Solved
What's the difference between render head :ok vs. render status :ok in Rails? They both get returned as the header right?
Cassilda asked 28/10, 2017 at 23:28
4
Solved
If I have a REST resource as shown below:
GET http://www.example.com/customers/{customerId}/orders
And in case the provided customerId does not exist, should my server return a 404 (Not Found) or...
Alethaalethea asked 24/10, 2017 at 2:28
18
Solved
I'm building a server that allows clients to store objects. Those objects are fully constructed at client side, complete with object IDs that are permanent for the whole lifetime of the object.
I ...
Nankeen asked 29/9, 2010 at 21:26
3
Solved
What status code should a well-written HTTP server return when it gets a CORS preflight (OPTIONS) request?
200, 204 or something else?
Should the status code be different in case origin is allowe...
Lulalulea asked 3/9, 2017 at 18:8
4
Solved
When a user is not logged in and tries to access a page that requires login, what is the correct HTTP status code for a redirect to the login page?
I am asking because none of the 3xx response cod...
Casualty asked 15/5, 2010 at 9:17
2
Solved
i develop res service at which it take unique id parameter each call, but when the same id used more than once it should retrieve the same response was retrieved the first time and status code spec...
Hypergolic asked 12/3, 2017 at 10:32
© 2022 - 2024 — McMap. All rights reserved.