Questions tagged [http-status-codes]
15 questions
3
votes
2 answers
What's the exit code for "curl -I" when not HTTP 200?
I want to check what HTTP status code is returned for an HTTP(S) URL. I don't care about content, so I just request head with
curl -I $url
or
curl --head $url
But what's the exit code I should check for, e.g. in subprocess.check_call? In…
Nemo
- 1,134
- 3
- 12
- 31
3
votes
4 answers
What does "File not found" mean on a web page?
When I access certain HTTP URLs, such as http://www.ssa.gov/framework/images/icons/png/ in Firefox (running on Linux), I surprisingly get a "Problem loading page" browser error, containing the "File not found" message that is used for local…
Mechanical snail
- 7,583
- 5
- 45
- 66
3
votes
1 answer
What status code does the server need to send when a file upload failed?
I'm using a NodeJS server. Currently I'm only checking if the uploaded file exists under the specified path. If it doesn't the server should return an error code.
I know it's not best practise to just check if it exists (it might be corrupted) but…
Wulthan
- 43
- 1
- 6
2
votes
0 answers
How to download a file at an url that returns a "206 Partial Content" response?
Let's say that I'm listening to an audio file online by pointing my web browser to some url https://someurl.fr/file.oga.
So the file isn't embedded in a page, but is accessed directly by the browser.
Usually, I could then download that file with…
user123065
- 113
- 6
2
votes
1 answer
What does the HTTP error 410 mean?
Recently, I was trying to download a file, and I got the following error from wget:
Error 410: Gone
What does this error code mean?
Zackary
- 513
- 3
- 12
- 35
2
votes
1 answer
Nginx - return custom 410 page with map
First of all, I'm using Nginx 1.12.1. I want to accomplish the following thing:
I have a list of urls, every url should return 410 for SEO purposes
I want to include this list as a map in my nginx config (because it's a really long list)
The 410…
martin s.
- 121
- 4
1
vote
0 answers
400 Bad Request - Invalid Host on Google Chrome
I'm using Google Chrome, when I visit this website (bttiantang.com), error below appears. I can't find any solution about this online. Could someone tell me what causes this error message to appear? And how do I fix it.
Happy Face
- 259
- 4
- 7
- 17
1
vote
1 answer
IE7 persistently displays "friendly" error message, instead of HTTP error code
I am trying to debug a web service on a network I don't have a lot of privileges on, and have run into a somewhat inconvenient IE quirk. When I try to access a resource (web page, specifically) through IE7 on Windows XP, the browser shows me a…
Asad Saeeduddin
- 129
- 10
1
vote
1 answer
sometimes nginx return 501 error
I have a problem that nginx returns 501 error or 200 OK for same requests.
I don't know why.
I guess nginx doesn't have enough connections for upstream.(I connect nginx and tomcat by reverse proxy. using upstream.) So it returns 501. I know it will…
JYS
- 11
- 3
0
votes
1 answer
Apache returning 403 status code
I'm basically having a basic HTML document and I am trying to link a JavaScript file and a .gif file which is in a CSS file. However, I notice that the networks tab of my browser says that it encountered a 403 error while trying to fetch the file.…
Abandoned Account
- 113
- 8
0
votes
2 answers
Images return 200 OK but do not appear in the browser. Local or Server issue?
I'm not sure if this question belongs here, or over at serverfault, but I'll start here:
I have several sites hosted on one Hostgator server in their Provo UT datacenter.
As an example of my problem, if I visit www.hastogo.com and click to browse…
TecBrat
- 138
- 2
- 14
0
votes
0 answers
Xfinity internet is causing me to have "bad requests" / error 400 to URL - reg.usps.com
I am encountering an HTTP error 400 when trying to reach reg.usps.com
USPS has verified their site is up.
The error is repeatable on all devices in household, connected to xfinity. On PCs, have tried multiple browsers, Chrome, Edge, with & without a…
Bronco6363
- 101
- 1
0
votes
0 answers
503 Service Unavailable only when a particular URL is accessed from the terminal command line tools like cUrl or wget
I am behind a proxy in a corporate environment:
$ printenv | grep proxy
http_proxy=http://aproxy.corproot.net:8080/
https_proxy=http://aproxy.corproot.net:8080/
and trying to access the following 2 URLs from the terminal using wget or curl (there…
Gabriel Petrovay
- 139
- 11
0
votes
1 answer
Font used for HTTP errors
What is the font used in HTTP status codes?
This font (I created a demo html file):
I've tried searching:
Inside Safari application bundle
DuckDuckGo-ing 'http font'
Any help appreciated!
Benj
- 105
- 3
-1
votes
1 answer
How does http 1.0 send big body?
As described in the title, how does HTTP 1.0 implement sending big body like in a POST request without 100 continue? Will the client simply send the whole body? If so, what would be the benefit brought in by 100 continue?
Jepsenwan
- 11
- 2