View previous topic :: View next topic |
Author |
Message |
Systemsoft -
Joined: 06 Jun 2003 Posts: 59 Location: Krakow, Poland
|
Posted: Wed Nov 12, 2003 9:05 pm Post subject: Custom Error Pages - All HTTP errors |
|
|
How to create Custom Error Pages you can find in AWS documentation. Many people know 404 error or 403, but what mean, for expample, error 505 or 414? You don`t know? So Systemsoft is here to help you! :D Maybe not all errors are useful for a server, but important errors and categories I marked on red colour
---
Information Codes
100 - Continue
The request was successful. The process can now continue.
101 - Switching Protocols
The request for the server to switch protocols was accepted, such as a switch from ftp to http.
Succes Codes
200 - OK
The item requested of the server is available (keep in mind, available, not accepted or completed).
201 - Created
A new address has been created through the use of form posting, perl, cgi, etc..
202 - Accepted
The request has been accepted (keep in mind that the request has been accepted, not completed).
203 - No-Authorative Information
The information received is not from the server that the information was requested from, but from another source.
204 - No Content
There was no content to be given for the request. For instance if you click on a hyperlink, imagemap, or button that isn't linked to anything or doesn't do anything.
205 - Reset Content
A script has reset the displayed content.
206 - Partial Content
Only partial content has been displayed. This could be due to bandwidth, poor caching, bad html, or other reasons.
Redirection Codes
300 - Multiple Choices
You will either get a choice of pages or an error message when this occurs. The address is actually pointing to two multiple files and/or locations.
301 - Moved Permanently
The requested page has been permanently moved. The server will automatically redirect you to the new location.
302 - Found
The requested page has been temporarily moved. The server will automatically redirect you to the new location.
303 - See Other
The requested data is stored in an alternate location and the GET method will be used to retrieve the data. If the actual error is returned then this may be due to a web server misconfiguration.
304 - Not Modified
The requested data has not been modified since the last request.
305 - Use Proxy
The requested data may only be accessed via the use of a proxy server.
307 - Temporary Redirect
The requested page has been moved. The server will automatically redirect you to the new location. Unlike Error 301 and 302 however, the server has not specified whether the move is temporary or permanent.
Client Error Code
400 - Bad Request
The request was denied due to a syntax error in the request.
401 - Unauthorized
Your IP address or the username/password you entered were not correct. Your request was denied as you have no permission to access the data.
402 - Payment Required
The data is not accessible at the time. The owner of the space has not yet payed their service provider.
403 - Forbidden
Your IP address or the username/password you entered were not correct. Your request was denied as you have no permission to access the data.
OR
The server was unable to serve the data that was requested.
404 - Not Found
The document that has been requested either no longer exists, or has never existed on the server.
405 - Method Not Allowed
The method you are using to access the document is not allowed. Possible methods include:
CONNECT
DELETE
GET
HEAD
OPTIONS
POST
PUT
TRACE
406 - Not Acceptable
The client (webbrowser) does not accept the document format. The formats that may be specified not to accept are charset, encoding, certain file types, languages, or ranges.
407 - Proxy Authorization Required
The browser has not been authenticated on the required proxy server to access the data. This error is probably most commonly returned by content filters/parental controls.
408 - Request Timeout
The server has closed the socket due to communications between the client and server taking too long. This could be due to server load, bandwidth issues, the client being disconnected from the internet, etc.
409 - Conflict
Too many requests for the same file at one time.
OR
There is a conflict with an established software rule. (ie: you are trying to copy over a file with an older version, or you do not have permissions to delete a file)
OR
This could be caused by a DNS issue.
410 - Gone
This is like a 404 error in that the document requested is not on the server, however this differs in that the server 'knows' that the file used to be there and 'believes' that the file may be back, so it returns 410 rather 404.
411 - Lenght Required
When trying to send a document to the server the server did not recieve a Content-Length specification in the header.
412 - Precondition Failed
A precondition setting required by the client or server has not been met.
413 - Request Entity Too Large
The process is too large to process. (ie: a file you are trying to upload is too large to fit on the server, or a webpage you are trying to download is too large for the server to process)
414 - Request-URL Too Large
The URL requested is simply too long. It is most likely more than 1024, 2048, or 4096 characters in length.
415 - Unsupported Media Type
This usually occurs if the server does not support the type of media the client is requesting. (ie: the server does not support streaming media, but streaming media is on the server and the client is attempting to access it)
416 - Requested Range Not Satisfiable
The client request included a range for acceptable file size, however the document requested did not fit into that range.
417 - Expectation Failed
The client's expect header requested certain server behaviors that the server could not perform.
Server Error Code
500 - Internal Server Error
The server encountered an error. This is most often caused by a scripting problem, a failed database access attempt, or other similar reasons.
501 - Not Implemented
The method you are using to access the document can not be performed by the server. Possible methods include:
CONNECT
DELETE
GET
HEAD
OPTIONS
POST
PUT
TRACE
502 - Bad Gateway
The document requested resides on a 3rd party server and the original server received an error from the 3rd party server.
503 - Service Unavaible
The server is overloaded or down for maintenance and due to this was unable to process the client request.
504 - Gateway Timeout
Most likely the client has lost connectivity (disconnected from the internet) or the cleint's host is having technical difficulties. This could also mean that a server that allows access to the requested server is down, having bandwidth/load issues, or otherwise unavailable.
505 - HTTP Version Not Supported
The server does not support the HTTP version used by the client. (This usually occurs if the server is using an OLDER version of HTTP than the client.)
---
Source: http://www.modemhelp.net
Whew! That`s all! Do you have any feedbacks? |
|
Back to top |
|
|
vanderschee -
Joined: 13 Nov 2003 Posts: 7
|
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Nov 14, 2003 4:03 am Post subject: Re: 404 |
|
|
vanderschee,
The default custom error page shouldn't contain the full URL. Just enter /error/index.html there.
Next, you error page HTML code includes an image using a relative path. You'd rather use an absolute path there. For example, if error.jpg is in your error folder, use:
Code: | <IMG SRC="/error/error.jpg"> |
instead of:
Code: | <IMG SRC="error.jpg"> |
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
vanderschee -
Joined: 13 Nov 2003 Posts: 7
|
Posted: Fri Nov 14, 2003 1:41 pm Post subject: img |
|
|
Thanks for your reply,
I've changed full url into /error/index.html
The image is in the same directory as the index.html, so if i point:
<img src="error/error.jpg> instead of <img src="error.jpg>
it is wrong.
And the only thing what schould happen is that I would get a page without the picture...but atleast I would have the page.
This is still not hapening and I dont understand why...
The page exist and I am pointing to it... |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Nov 16, 2003 9:10 pm Post subject: Re: img |
|
|
Code: |
<img src="error/error.jpg>
|
is still wrong. You are using a relative virtual path. You must start the path with a /:
Code: |
<img src="/error/error.jpg>
|
[/code] _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
vanderschee -
Joined: 13 Nov 2003 Posts: 7
|
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Nov 18, 2003 8:18 pm Post subject: Re: ?? |
|
|
Yes, we were speaking about the page HTML code. (by the way, your page shows the regular error 403). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
vanderschee -
Joined: 13 Nov 2003 Posts: 7
|
Posted: Tue Nov 18, 2003 8:48 pm Post subject: plain text |
|
|
I realy dont get it.
If I use plain text I gett my errorpage if I go to http://vanderschee.ipupdater.com/wrongtext
but if I use a picture in the errorpage, it won't work.
It isnt in the html because I write all my internetsites in plain HTML.
The sugestions you gave me didn't work, so I guess it stays this way.
Thanks anyway....
Peter van der Schee
the Netherlands. |
|
Back to top |
|
|
vanderschee -
Joined: 13 Nov 2003 Posts: 7
|
|
Back to top |
|
|
Systemsoft -
Joined: 06 Jun 2003 Posts: 59 Location: Krakow, Poland
|
|
Back to top |
|
|
vanderschee -
Joined: 13 Nov 2003 Posts: 7
|
Posted: Tue Nov 18, 2003 9:29 pm Post subject: THANKS |
|
|
hi,
Thanks a lot.
Now I gett it. It isnt my experiance in HTML...I write in notepad and do not use an other editor...(For example take a look at a site I made, http://www.jongerenweek.nl )
I am unexperianced in having my own server....thats for sure.
So I know now that I can direct to an errorpage with only text...
And if I want to show an image, I have to direct to this Immage directly.
It seems to be impossible to make an errorpage (/error/index.html) with in that index.html an Image, becouse it will not show..
But what I wanted is to show an image, and that works now...
Thanks again,
Peter van der Schee |
|
Back to top |
|
|
Hunted -
Joined: 24 Nov 2003 Posts: 71
|
Posted: Sat Nov 29, 2003 6:43 pm Post subject: error 200 |
|
|
How do I fix error 200?
I get that in phpmyadmin. I did what it said in Punks tutorial |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Nov 30, 2003 12:44 am Post subject: |
|
|
Can you run other scripts without getting a error 200 , their is some mistake with your configuration , my tutorials are very easy to follow.
What gives you the error 200 ! Explain |
|
Back to top |
|
|
Hunted -
Joined: 24 Nov 2003 Posts: 71
|
Posted: Sun Nov 30, 2003 7:14 am Post subject: phpmyadmin |
|
|
I only get it in phpmyadmin, but I can still create databases, but just now password protect 'em |
|
Back to top |
|
|
kev1952 -
Joined: 08 Sep 2005 Posts: 105 Location: Townsville Australia
|
Posted: Wed Feb 08, 2006 10:36 pm Post subject: |
|
|
Could someone explain codes 200 & 304 (particularly 304) in more detail for me, please? Code 200 is pretty obvious but 304 is odd - are they interchangeable? _________________ Cheers.... Kev
Kev's Place - http://www.kevsplace.com
Powered by Abyss X1. |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Wed Feb 08, 2006 11:48 pm Post subject: |
|
|
RFC2616 wrote: |
10.3.5 304 Not Modified
If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields.
The response MUST include the following header fields:
Code: | - Date, unless its omission is required by section 14.18.1 |
If a clockless origin server obeys these rules, and proxies and clients add their own Date to any response received without one (as already specified by [RFC 2068], section 14.19), caches will operate correctly.
Code: | - ETag and/or Content-Location, if the header would have been sent in a 200 response to the same request
- Expires, Cache-Control, and/or Vary, if the field-value might differ from that sent in any previous response for the same variant |
If the conditional GET used a strong cache validator (see section 13.3.3), the response SHOULD NOT include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.
If a 304 response indicates an entity not currently cached, then the cache MUST disregard the response and repeat the request without the conditional.
If a cache uses a received 304 response to update a cache entry, the cache MUST update the entry to reflect any new field values given in the response.
|
_________________
|
|
Back to top |
|
|
|