Skip to content

403 Forbidden (HTTP Status Code 403)

Updated: at 09:12 AM

HTTP status code 403 indicates that the server understood the client’s request but refuses to fulfill it. This is typically due to restrictions on the server, such as permission settings, security policies, or legal reasons.

The 403 error differs from the 404 error; a 404 “Not Found” means the server could not find the requested resource, whereas a 403 indicates that the server found the resource but does not allow access.

Common Causes of 403 Status Code

When returning a 403 status code, the server may include a WWW-Authenticate field in the response header, indicating how the client should authenticate. If the issue is authentication-related, the server may require the user to provide valid authentication credentials.

For example, the server might send the following response:

HTTP/1.1 403 Forbidden
Content-Type: text/html
WWW-Authenticate: Basic realm="example"
Content-Length: 234

<html>
<head><title>403 Forbidden</title></head>
<body>
<h1>Forbidden</h1>
<p>You do not have the necessary credentials to access this resource.</p>
</body>
</html>

In this example, the status code 403 indicates that access is denied, and the WWW-Authenticate header specifies that Basic authentication is required, providing a protected realm.

When the client receives a 403 error, it should check whether it has permission to access the resource and ensure that correct authentication information has been provided. If the issue persists, it may be necessary to contact the website administrator or service provider for further assistance.