Questions tagged [http-status-code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
339 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:...
user avatar
  • 111
0 votes
1 answer
504 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 ...
user avatar
  • 101
0 votes
0 answers
66 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 ...
user avatar
0 votes
2 answers
56 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 ...
user avatar
  • 103
0 votes
1 answer
376 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 ...
user avatar
  • 129
-1 votes
3 answers
5k 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 ...
user avatar
  • 109
1 vote
1 answer
965 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 63
3 votes
1 answer
3k 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/...
user avatar
1 vote
1 answer
5k 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 ...
user avatar
0 votes
3 answers
949 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, ...
user avatar
0 votes
1 answer
153 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 ...
user avatar
  • 1,034
0 votes
2 answers
7k 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 ...
user avatar
  • 748
6 votes
1 answer
9k 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 ...
user avatar
  • 29.8k
0 votes
1 answer
2k 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 ...
user avatar
2 votes
2 answers
804 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 ...
user avatar
  • 119
1 vote
0 answers
200 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 ...
user avatar
  • 65
2 votes
0 answers
228 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 ...
user avatar
  • 221
0 votes
0 answers
488 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 ...
user avatar
1 vote
1 answer
22k 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 ...
user avatar
  • 41
3 votes
1 answer
812 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=%{...
user avatar
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 ...
user avatar
  • 23
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 ...
user avatar
1 vote
1 answer
982 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 ...
user avatar
0 votes
1 answer
252 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 ...
user avatar
  • 897
1 vote
0 answers
189 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 ...
user avatar
  • 121
1 vote
0 answers
813 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 ...
user avatar
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 ...
user avatar
  • 574
1 vote
0 answers
639 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 ...
user avatar
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 ...
user avatar
  • 23
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 ...
user avatar
11 votes
3 answers
9k 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 ...
user avatar
  • 1,956
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 ...
user avatar
  • 604
-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 ...
user avatar
  • 101
0 votes
0 answers
257 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. ...
user avatar
13 votes
1 answer
38k 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 ...
user avatar
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 ...
user avatar
  • 1,140
2 votes
3 answers
5k 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 ...
user avatar
  • 574
0 votes
1 answer
376 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 ...
user avatar
10 votes
2 answers
17k 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. ...
user avatar
  • 592
-3 votes
1 answer
997 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 ...
user avatar
  • 323
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 ...
user avatar
  • 141
17 votes
3 answers
25k 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 ...
user avatar
  • 283
0 votes
1 answer
883 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....
user avatar
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?
user avatar
  • 161
0 votes
1 answer
2k 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-...
user avatar
4 votes
3 answers
9k 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 ...
user avatar
1 vote
1 answer
1k views

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 ...
user avatar
0 votes
1 answer
200 views

HTTP Status Codes for Web Application Logic

This might be more of a PHP and SO question, but since it deals with HTTP codes, I thought I'd ask here first. So I'm building a very simple user authentication backend that basically checks the (...
user avatar
  • 305
0 votes
1 answer
1k views

Apache returns 400 instead of 200 at DocumentRoot

I am seeing a lot of these odd entries in my Apache access log: SOME IP ADDRESS - - [23/Feb/2012:03:06:38 -0800] "GET /" 400 460 "-" "-" If I try to access the Apache document root, I get: MY IP ...
user avatar
  • 113