HTTP 403 Forbidden

The server understood who you are and won’t let you do this.

Forbidden

4xx Client errorStandardRFC 9110, section 15.5.4

The server understood who you are and won’t let you do this.

Example response
HTTP/1.1 403 Forbidden
Content-Type: application/json
Date: Sun, 15 Nov 2026 09:30:00 GMT

{"error":"forbidden","message":"You need the admin role to delete projects."}

What 403 means

The server understood the request and refuses to carry it out. If you were logged in, you don’t have permission. Logging in again won’t help, because the server already knows who you are or doesn’t care.

When servers send it

For permission checks, blocked IP addresses or countries, web application firewalls, hot-link protection, and directories with listings turned off.

Common causes

  • Your account’s role doesn’t allow this action.
  • A file permission problem on the server (the web server user can’t read the file).
  • No index file in a directory, with directory listing switched off.
  • A firewall or bot protection rule blocking your IP, country or user agent.
  • Cloud storage (such as an S3 bucket) that isn’t public, or a signed URL that has expired.
  • A CSRF check failing in some frameworks.

How to fix it as a developer

  • Check the user’s roles and the resource’s access rules.
  • On the server, check file permissions: usually 644 for files and 755 for folders. The chmod calculator explains these.
  • Check the firewall or CDN security logs for a blocked request.
  • Some APIs return 404 instead of 403 to hide that a resource exists. That’s allowed by the spec.

How to fix it as a visitor

  • Check you’re logged into the right account.
  • Turn off a VPN, as some sites block VPN addresses.
  • If you think you should have access, contact the site owner.

Related codes

Where it’s defined

403 Forbidden is defined in RFC 9110, section 15.5.4. It’s a 4xx code, the client error class: something is wrong with the request, so sending it again unchanged won’t help.

Other 4xx codes

400 Bad Request · 401 Unauthorized · 402 Payment Required · 404 Not Found · 405 Method Not Allowed · 406 Not Acceptable · 408 Request Timeout · 409 Conflict · 410 Gone · 413 Content Too Large · 414 URI Too Long · 415 Unsupported Media Type · 418 I’m a teapot · 422 Unprocessable Content · 429 Too Many Requests · 431 Request Header Fields Too Large · 451 Unavailable For Legal Reasons · 499 Client Closed Request

Or search them all in the HTTP status code list.

Questions people ask

What does HTTP 403 Forbidden mean?
The server understood who you are and won’t let you do this.
What’s the difference between 403 and 401?
401 means you need to authenticate (log in). 403 means the server knows the request and still won’t allow it. A 403 won’t go away by logging in again with the same account.
Why does my site show 403 Forbidden after uploading files?
Usually file permissions or ownership: the web server can’t read the files. Folders typically need 755 and files 644. A missing index file with directory listing turned off also gives a 403.
Can a server send 404 instead of 403?
Yes. RFC 9110 allows a server to send 404 to hide that something exists. GitHub does this for private repositories.
↑↓ move↵ openesc close