403 Forbidden

HTTP 403 Forbidden is a 4xx client error status. The server understood who you are (or does not care) and refuses to allow the request.

403Status code
4xxClient error
NoCacheable by default
RFC 9110 §15.5.4Defined in

Common causes

What to do

Logging in again will not help if the account lacks permission. On your own server, check file ownership, chmod values and access rules.

Example response

HTTP/1.1 403 Forbidden
Content-Type: application/problem+json

{"status":403,"title":"Forbidden"}

Returning 403 in code

Express   res.status(403).json({ … });
Flask     return jsonify(…), 403
PHP       http_response_code(403);
Go        w.WriteHeader(403)
nginx     return 403;

Other 4xx codes

Frequently asked questions

What does HTTP 403 mean?
The server understood who you are (or does not care) and refuses to allow the request.
Is 403 an error?
Yes. It is a client error: the request needs to change before retrying.
Does a 403 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.