Questions tagged [http-status-code]
64 questions
1
vote
0 answers
Is it correct that Nginx reports HTTP/1.1 status codes with SPDY (3.1)?
Questions
Do I have to look at response headers like X-Firefox-Spdy to determine which protocol was actually used?
Can I assume that Nginx will report HTTP/2 status codes once the implementation is finalized because that is to be expected behaviour…

LiveWireBT
- 113
- 1
- 1
- 7
1
vote
0 answers
Changing status code from proxied backend server with nginx
I am proxying some paths to another server. That server responds with 302 Moved Temporarily. I need to change that particular status code to 200 OK. Otherwise I can pass response through as-is and other status codes should pass without…

Juha Syrjälä
- 1,081
- 10
- 19
1
vote
1 answer
Reading IIS error logs - status and substatus
While trying to troubleshoot an IIS error I came upon a guide that discussed the error code in the IIS log.
The 4 server logs you NEED to know to fix any IIS / ASP.NET error
The post uses the following excerpt from an IIS log file ...
2013-06-16…

webworm
- 604
- 2
- 8
- 18
1
vote
0 answers
IE 10 HTTP 401 Error on AJAX POST
I've been chasing down an issue and decided to make the most basic reproduction of the issue possible in hopes that a simplified question will help me resolve this.
I am receiving a 401 error when posting to a web service via AJAX in JavaScript. I…

jon3laze
- 141
- 1
- 2
- 8
1
vote
1 answer
NGINX : Proxy pass intercepting 5xx errors - Possible to differentiate between ones fired by backed vs ones fired by nginx itself?
We use proxy_intercept_errors ( http://wiki.nginx.org/HttpProxyModule#proxy_intercept_errors ) with our backends.
We intercept a number of status codes, including a few 5xx ones.
Our 5xx (each 500 has its own) handler has an access_log so we can…

anonymous-one
- 1,018
- 7
- 27
- 43
1
vote
2 answers
Apache ErrorDocument 400 https redirection without 302 found page with the actual link
When I force the error 400 by trying http on a https port I get a 302 found code with the https://myserver/mypage.html link I want to show, and I have to click it to get to the page
How can I skip this step and have a straight redirection to the…

NotGaeL
- 277
- 1
- 3
- 14
1
vote
1 answer
IIS7 and HTTP status code handling
This question is posted on Stack Overflow, and I'm cross-posting here because I think this might be a more correct forum for it.
I'm having a hardcore head-ache from trying to get complete programmatic control over rendering of an error in IIS7…

Asbjørn Ulsberg
- 153
- 5
1
vote
1 answer
WSGI: get status 200 OK instead of 404
what's wrong with the following WSGI setup based on Apache 2.2, Windows and mod_wsgi 3.3? The problem is that the client gets an OK response status even visiting URLs that don't have an associated application (e.g. http://wsgi/any), instead of 404…

Paolo
- 283
- 1
- 4
- 12
1
vote
3 answers
Web Server (Intranet) Availability Test Script/Program
After rebooting a number of web servers (around 40), I would like to be able to quickly test each one to ensure that they are all up, running and will return an HTTP 200 code when called.
Please can you suggest a script or tool to do this? I should…

Techboy
- 1,550
- 7
- 31
- 49
1
vote
0 answers
How to figure out what is bad about a 400 bad request, on an Apache-server
The overarching question
How do I see what is 'bad' about a 400 - bad request?
Info about the error
When I click around the WordPress-backend, then between 3 and 7 requests (out of 95-100) give me a: 400 - Bad request-error, upon every page load.…

Zeth
- 121
- 2
- 7
0
votes
3 answers
Argument for providing 200 response on non-existent file
Does it ever make sense for a server to provide a 200 response when a GET request is made for a non-existent file? Shouldn't the response always be a 404?
Here's the response header:
{'Date': 'Tue, 08 Jan 2019 22:56:26 GMT', 'Server': 'Apache',…

AdjunctProfessorFalcon
- 101
- 5
0
votes
1 answer
Can I customise netdata not to alert me about 303 redirects?
I use 303 codes (correctly, I believe) to redirect a user after they've submitted a form. Unfortunately this means that a few times every day I get an alert from netdata along the lines of:
netdata notification
yoursite needs…

Codemonkey
- 1,086
- 4
- 19
- 41
0
votes
2 answers
Why does my 404 return 200 status code?
Not sure why but all of my error pages respond with a 200. That's feels a little strange to me, the pages exist but shouldn't they have their corresponding status codes? How do I get Nginx to render my 404 pages with a 404 status code?
For…

jwerre
- 768
- 3
- 12
- 26
0
votes
1 answer
Expire 410 responses in nginx
Browsers cache 410 Gone responses indefinitely by default. An accidental 410 can kill the URL forever. The URL might be also resurrected later for other reasons. I would like to set expires for 410s to force browser refresh time to time. Is there a…

Robert Važan
- 101
- 3
0
votes
0 answers
Hide Apache error codes
I'm trying to hide the error states returned by Apache.
I want all error code (403, 404, 500, ...) to return the same status code (for example 404).
I know how to hide that there are certain resources that exist sending a fake status code, using…

Juan Carlos L.A.
- 11
- 5