Questions tagged [http-status-codes]

17 questions
4
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,963
  • 5
  • 48
  • 67
4
votes
2 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…
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,151
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…
2
votes
1 answer

Why doesn't a website like Udemy.com work in my Chrome browser since a few days ago? How to check the reason?

When I open https://udemy.com in my Chrome browser it displays the following error: This page isn’t working If the problem continues, contact the site owner. HTTP ERROR 401 However, the same page works in Edge, it also works in Incognito mode in…
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
  • 573
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
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.
1
vote
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
  • 148
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…
pxq
  • 129
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
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.…
0
votes
2 answers

Can I programmatically test for an anchor on a webpage?

I'm writing a simple OCR checker in Excel that parses the OCR output text file into words and uses Wiktionary to check a selection of words to see if they are valid words. I know there are sophisticated dictionary lookup systems that run in Python,…
NewSites
  • 862
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…
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…
1
2