Questions tagged [http-status-code]
The http-status-code tag has no usage guidance.
64
questions
0
votes
1
answer
256
views
How to setup 410 permanently deleted on nginx
How do I setup 410 permanently deleted on nginx for a specific URL for e.g.
https://www.example.com/product/somepage.html
Or better yet how can I do it for a specific prefix for e.g.
https://www....
0
votes
0
answers
108
views
Configuration of dummy default vhost and prevent virtual host fallback with https requests to IP-PD host
Background
Consider 4 hypothetical FQDNs that all resolve to 192.0.2.42:
example.com
www.example.com
foo.example.org
legacy.example.net
Now, consider two hypothetical servers bound to 192.0.2.42 (...
0
votes
0
answers
24
views
Log data of http status 200 in user directory with Apache2.4
I want to log http status 200 data in my user directory with Apache2.4.
the current
SetEnvIf Request_URI "~data” ssl_datalog nolog
CustomLog ${APACHE_LOG_DIR}/ssl_data_log combined env= ...
2
votes
0
answers
4k
views
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:...
0
votes
1
answer
3k
views
Testing Spring Boot API results in HTTP 405 (Method not Allowed) on PUT
I created an API which I deployed to Tomcat Server. During development, I would start the application from Eclipse and test the end point using Postman. From Eclipse, the application runs fine. I ...
0
votes
0
answers
268
views
Which HTTP Status Code is most appropriate for a non-cooperation response?
I'd like to send an HTTP response that indicates my server is not willing to cooperate with the requester, as a sort of (voluntarily-imposed non-legal) sanction. For example, ACME Corp stole your ...
0
votes
2
answers
261
views
HTTP status code in an https domain
I am reading about the error 504 Gateaway Time-out error. All the websites I have found, relate the 504 error to HTTP status code. the error is displayed if visiting a https website. According to what ...
0
votes
1
answer
1k
views
Return file with status code from remote server in Nginx
I am trying to set up my SPA to return 404 for invalid resources by having nginx do a backcheck for the resource before responding. All this is to avoid invalid pages coming with 200 and thus having ...
-1
votes
3
answers
8k
views
How can i do a redirect with 404 as status code in Nginx [closed]
We have moved our website to a new domain and our SEO department want to have some redirect from the old urls to the new urls with 404 status code. I dont know if it is possible and want to collect ...
1
vote
1
answer
2k
views
What HTTP status code to avoid instances being marked as unhealthy on AWS Elastic Beanstalk
I am running an application on AWS Elastic Beanstalk. If an instance responds too often with an HTTP status code in the 500 (server error) range AWS marks this instance as unhealthy and removes the ...
1
vote
1
answer
3k
views
413 error in apache even though my POST is much smaller than the max limit
I have asked this question on stack overflow as well. I have an apache server and a fastcgi script. When I try to send POST request to my script, it fails giving me the 413 error. If I send in no ...
4
votes
1
answer
5k
views
nginx: how to disable access_log for ($http_status == 200)
Is there any way to disable access_log for 200 HTTP response code? I tried using conditions but it seems access_log directive is not allowed in an if block. I tried this:
access_log /var/log/nginx/...
1
vote
1
answer
7k
views
Nginx Proxy Pass - Return Status code form upstream site
How do I return the HTTP STATUS CODE from the http://127.0.0.1:8080/
Example:
http://127.0.0.1:8080/api/example returns a 500 then when accessing ttp://127.0.0.1/api/example it should also return ...
0
votes
3
answers
2k
views
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, ...
0
votes
1
answer
188
views
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 ...
0
votes
2
answers
10k
views
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 ...
6
votes
1
answer
12k
views
HTTP status code to signal bad or missing Host header
Is there an HTTP status code which is appropriate to use for clients which send a bad hostname (or none at all) through SNI or the HTTP Host header?
An older question address how and why such ...
0
votes
1
answer
3k
views
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 ...
2
votes
2
answers
1k
views
How should web servers handle requests with incorrect Host header?
I am getting a number of requests to my site with the Host header set incorrectly (most commonly to the IP address instead of domain name). Currently I am returning 400 Bad Request. I am thinking of ...
1
vote
0
answers
233
views
Unable to find IIS response logs for php calls
I'm having trouble finding IIS logs for non-erroring calls to php files.
I've recently been given ownership of an IIS 7.5 server that runs php. While digging through logs, I can't find any records ...
2
votes
0
answers
276
views
Enabling logwatch to log successful requests as well
I have a very low-volume http server (Nginx) which is used by only a few users and otherwise receives some probes from hackers.
For this installation I would like the logwatch output to include ...
0
votes
0
answers
642
views
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 ...
1
vote
1
answer
28k
views
Nginx-Always return 403 status code
I'm trying to get Nginx to return a simple webpage, but always with an http status code of 403. For some reason, I just can't get it to work. I have two files in /var/www/html/:
index.html
photo.jpg
...
3
votes
1
answer
1k
views
Is it possible to set the Status-Line header with Apache's Header directive?
My searches have turned up blank... I'm trying to change the 403 Forbidden status of the response to a 404 Not Found status with this line:
Header set Status-Line "HTTP/1.1 404" "expr=%{...
2
votes
2
answers
2k
views
Openshift + HAproxy 503 custom page
I'm using 503 HTTP Status and a coming soon page for maintenance mode.
Is there any way to get HAproxy serving server-side generated 503 page instead of the default blank/unavailable page?
I'm using ...
1
vote
1
answer
2k
views
How can I set HTTP status code reason phrases in nginx
The reason phrases of HTTP responses that accompany a status code are not fixed. Instead of returning 200 OK it would be legal to return 200 Everything fine.
nginx has predefined reason phrases for ...
1
vote
1
answer
1k
views
Nginx - Wrong Response Header
when installing joomla I face an issue realated to response header.
During the installation process, an ajax post request send to server which in response status is 303 instead of 200 ! so ajax ...
0
votes
1
answer
308
views
Trouble understanding NGINX configuration
I was getting 403 & 404 errors on a Magento application I was working on I tracked down the issue to two blocks in the NGINX configuration, if I comment them out the issues are resolved but I ...
1
vote
0
answers
225
views
HAProxy HTTP Response "Other"
The HAProxy documentation lists the possibility of returning non-conforming HTTP status codes:
hrsp_other [.FBS]: http responses with other codes (protocol error)
Are these simply error codes ...
1
vote
0
answers
1k
views
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 ...
0
votes
1
answer
2k
views
Nginx : How to server error_pages (404, etc) using uwsgi url?
I know it's possible to server static files using error_page in NGinx, but I was wondering if it was possible to server an url from my local (socketed) Flask app that is served through UWsgi.
Here's ...
1
vote
0
answers
682
views
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 ...
2
votes
1
answer
1k
views
ShellShock test shows wget and curl access
I've fixed shellshock bug on my Debian 6 server and while testing on http://shellshock.brandonpotter.com/ I get "No Vulnerabilities Found" and that's OK but they also check other things and in the ...
2
votes
2
answers
3k
views
How to configure mod_evasive to show HTTP status 429 instead of 403?
Some search engine spiders like Bingbot crawl too rapidly and does not seem to obey robots.txt crawl-delay directive. This triggers the DOS defence mechanism in mod_evasive to generate HTTP 403 ...
11
votes
3
answers
10k
views
Is it safe to use HTTP status 308 Permanent Redirect?
Is it safe to use the HTTP status code 308 Permanent Redirect (suggestion) in server responses? The issue with 301 Moved Permanently is that it only works with GET requests (to be fair: POST will ...
1
vote
1
answer
1k
views
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 ...
-1
votes
1
answer
1k
views
why do I keep getting 206 codes?
I was getting tired of seeing piles of series of partial content 206 requests in my logs, most likely from pdf read-while-loading browsers. So I set "accept-ranges none". The number of 206's went WAY ...
0
votes
0
answers
258
views
User using our client to authenticate with our servers are met with the 4XX errors
I am currently debugging an issue with one user unable to communicate with our auth servers. This issue is important to us because it's one user, which likely could stem to more users as we grow.
...
13
votes
1
answer
40k
views
What does http code 206 (partial content) really mean?
I'm building a page (using video.js, should it matter) that holds players for a reasonably large number of videos -- click a button on a thumbnail of the image and a modal player opens up, playing the ...
0
votes
1
answer
5k
views
HAProxy HTTP Codes
I was wondering if is there any way to track different HTTP codes that HAProxy send to clients.
For example, have a log with just a list of different status codes:
200
200
302
404
499
500
Having ...
2
votes
3
answers
7k
views
Server returns a 404 code when requesting HEAD?
I configured my server with Nginx (v= ), and when I try to request using HEAD, I got a 404 :
curl -I http://postera.in
HTTP/1.1 404 Not Found
Server: nginx/1.2.1
Date: Thu, 19 Dec 2013 09:51:53 GMT
...
0
votes
1
answer
388
views
how does web server handle 304 http status code
As i understand 304 status says the cache in browser is valid enough. So does the web server never send the page in case the page is not expired cache timing or does it process the request and send ...
12
votes
3
answers
19k
views
POST request is repeated with nginx loadbalanced server (status 499)
double uploads
Ever since we went from a simple Apache instance to a loadbalanced environment, there are sometimes issues with POST requests getting repeated. We are running nginx as reverse proxy. ...
-3
votes
1
answer
1k
views
apache returns error code 201 instead of body [closed]
i have an Apache server (apache 2.2) installed on an ubuntu server.
the ubuntu is ubuntu quantal that sits on amazon ec2.
that server receives xml requests as post data and returns xml response in ...
1
vote
0
answers
2k
views
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 ...
22
votes
3
answers
33k
views
How do I configure nginx to return 429 http code when rate limiting?
How do I configure nginx to return http status code 429 (Too Many Requests) instead of the default 503 (Service Unavailable) when throttling/rate limiting?
FYI, I'm using nginx as a reverse proxy with ...
0
votes
1
answer
1k
views
Apache reports status 200 but file doesn't exist in the server
In Apache access log I have these lines repeating all over the file:
186.44.190.132 - - [22/Feb/2013:23:41:34 +0100] "POST /includes/wishlistcwh.php HTTP/1.1" 200 42416 "-" "Mozilla/5.0"
151.246.16....
3
votes
1
answer
2k
views
How to return 410 with lighttpd
I have a subdomain with service I am going to kill.
I'd like to use 410 to mark it as such.
Is there a way to do that with lighttpd without resolving to mod_magnet and lua scripts?
0
votes
1
answer
3k
views
IIS logs status code 590
Background: Trying to chase a bug where resources occasionally won't load. Only happens on mobile devices.
Last five columns in IIS logs are cs(User-Agent) sc-status sc-substatus sc-win32-status time-...
4
votes
3
answers
11k
views
HTTP/1.1 Status Codes 400 and 417, cannot choose which
I've got a processing file which handles the user sent data, before that, however, it compares the input from client to the expected values to ensure no client-side data change.
I can say I don't ...