Showing posts with label http code. Show all posts
Showing posts with label http code. Show all posts

Friday, February 26, 2016

http error code overview

When accessing a web server or application, every HTTP request that is received by a server is responded to with an HTTP status code. HTTP status codes are three-digit codes, and are grouped into five different classes. The class of a status code can be quickly identified by its first digit:
  • 1xx: Informational
  • 2xx: Success
  • 3xx: Redirection
  • 4xx: Client Error
  • 5xx: Server Error

1xx: Information

Message: 100 Continue
Description: The server has received the request headers, and the client should proceed to send the request body

Message: 101 Switching Protocols
Description: The requester has asked the server to switch protocols

Message: 103 Checkpoint
Description: Used in the resumable requests proposal to resume aborted PUT or POST requests

2xx: Successful

Message: 200 OK

Description: The request has succeeded. The information returned with the response is dependent on the method used in the request, for example:

GET an entity corresponding to the requested resource is sent in the response;

HEAD the entity-header fields corresponding to the requested resource are sent in the response without any message-body;

POST an entity describing or containing the result of the action;

TRACE an entity containing the request message as received by the end server.

Message: 201 Created
Description: The request has been fulfilled and resulted in a new resource being created. The newly created resource can be referenced by the URI(s) returned in the entity of the response, with the most specific URI for the resource given by a Location header field. The response SHOULD include an entity containing a list of resource characteristics and location(s) from which the user or user agent can choose the one most appropriate. The entity format is specified by the media type given in the Content-Type header field. The origin server MUST create the resource before returning the 201 status code. If the action cannot be carried out immediately, the server SHOULD respond with 202 (Accepted) response instead.

A 201 response MAY contain an ETag response header field indicating the current value of the entity tag for the requested variant just created, see section 14.19.

Message: 202 Accepted

Description: The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place. There is no facility for re-sending a status code from an asynchronous operation such as this.

The 202 response is intentionally non-committal. Its purpose is to allow a server to accept a request for some other process (perhaps a batch-oriented process that is only run once per day) without requiring that the user agent's connection to the server persist until the process is completed. The entity returned with this response SHOULD include an indication of the request's current status and either a pointer to a status monitor or some estimate of when the user can expect the request to be fulfilled.

Message: 203 Non-Authoritative Information
Description: The returned metainformation in the entity-header is not the definitive set as available from the origin server, but is gathered from a local or a third-party copy. The set presented MAY be a subset or superset of the original version. For example, including local annotation information about the resource might result in a superset of the metainformation known by the origin server. Use of this response code is not required and is only appropriate when the response would otherwise be 200 (OK).

Message: 204 No Content
Description: The server has fulfilled the request but does not need to return an entity-body, and might want to return updated metainformation. The response MAY include new or updated metainformation in the form of entity-headers, which if present SHOULD be associated with the requested variant.

If the client is a user agent, it SHOULD NOT change its document view from that which caused the request to be sent. This response is primarily intended to allow input for actions to take place without causing a change to the user agent's active document view, although any new or updated metainformation SHOULD be applied to the document currently in the user agent's active view.

The 204 response MUST NOT include a message-body, and thus is always terminated by the first empty line after the header fields.

Message: 205 Reset Content
Description: The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent. This response is primarily intended to allow input for actions to take place via user input, followed by a clearing of the form in which the input is given so that the user can easily initiate another input action. The response MUST NOT include an entity.

Message: 206 Partial Content
Description: The server has fulfilled the partial GET request for the resource. The request MUST have included a Range header field indicating the desired range, and MAY have included an If-Range header field to make the request conditional.

The response MUST include the following header fields:

      - Either a Content-Range header field indicating
        the range included with this response, or a multipart/byteranges
        Content-Type including Content-Range fields for each part. If a
        Content-Length header field is present in the response, its
        value MUST match the actual number of OCTETs transmitted in the
        message-body.
      - Date
      - 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 206 response is the result of an If-Range request that used a strong cache validator, the response SHOULD NOT include other entity-headers. If the response is the result of an If-Range request that used a weak validator, the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers. Otherwise, the response MUST include all of the entity-headers that would have been returned with a 200 (OK) response to the same request.

A cache MUST NOT combine a 206 response with other previously cached content if the ETag or Last-Modified headers do not match exactly.

A cache that does not support the Range and Content-Range headers MUST NOT cache 206 (Partial) responses.

Wednesday, February 24, 2016

http error code 403 : How to fix 403 error

The 403 Forbidden error is an HTTP statuscode which means that accessing the page or resource you were trying to reach is absolutely forbidden for some reason. This article contains basic troubleshooting instructions for403 Forbidden errors.



The 403 Forbidden error is an HTTP status code that means that accessing the page or resource you were trying to reach is absolutely forbidden for some reason.


Different web servers report 403 errors in different ways, the majority of which I've listed below. Website owners are also welcome to customize HTTP 403 errors but that's not too common.

Cause of 403 Forbidden Errors


403 errors are almost always caused by issues where you're trying to access something that you don't have access to. The 403 error is essentially saying "Go away and don't come back here."

Note: Microsoft IIS web servers provide more specific information about the cause of 403 Forbidden errors by suffixing a number after the 403 as in HTTP Error 403.14 - Forbidden which means Directory listing denied. You can see a complete list here.

How To Fix the 403 Forbidden Error

Check for URL errors and make sure you're specifying an actual web page file name and extension, not just a directory. Most websites are configured to disallow directory browsing so a 403 Forbidden message when trying to display a folder instead of a specific page is normal and expected.

Important: This is, by far, the most common reason for a web site to return the 403 Forbidden error. Be sure you fully explore this possibility before investing time in the troubleshooting below.

Tip: If you operate the website in question, and you want to prevent 403 errors in these cases, enable directory browsing in your web server software.

Clear your browser's cache. Issues with a cached version of the page you're viewing could be causing 403 Forbidden issues.

Log in to the website, assuming it's possible and appropriate to do so. A 403 Forbidden message could mean that you need additional access before you can view the page.

Typically, a website produces a 401 Unauthorized error when special permission is required but sometimes a 403 Forbidden is used instead.

Clear your browser's cookies, especially if you typically log in to this website and logging in again (the last step) didn't work.

Note: While we're talking about cookies, be sure you have them enabled in your browser, or at least for this website, if you do actually log in to access this page. The 403 Forbidden error in particular indicates that cookies may be involved in obtaining proper access.

Contact the website directly. It's possible that the 403 Forbidden error is a mistake, everyone else is seeing it too, and the website isn't yet aware of the problem.

See my Website Contact Information list for contact information for lots of popular websites. Most sites have support-based accounts on social networking sites, making it really easy to get a hold of them. Some even have support email addresses and telephone numbers.

Tip: Twitter is usually abuzz with talk when a site goes down completely, especially if it's a popular site. The best way to focus in on talk about a downed site is by searching for #websitedown on Twitter, as in #amazondown or #facebookdown. While this trick certainly won't work if Twitter is down with a 403 error, it's great for checking on the status of other downed sites.

Contact your ISP if your still getting the 403 error, especially if you're pretty sure that the website in question is working for others right now.

It's possible that your public IP address, or your entire Internet Service Provider, has been blacklisted, a situation that could produce a 403 Forbidden error, usually on all pages on one or more sites.

Come back later. Once you've verified that the page you're accessing is the correct one and that the HTTP 403 error is being seen by more than just you, just revisit the page on a regular basis until the problem is fixed.
Still Getting 403 Errors?

If you've followed all of the advice above but are still receiving a 403 Forbidden error when accessing a certain webpage or site, see Get More Help for information about contacting me on social networks or via email, posting on tech support forums, and more.

Be sure to let me know that the error is an HTTP 403 error and what steps, if any, you've already taken to fix the problem.