403 Forbidden

Written by Evert Pot - - Aggregated on Tuesday December 4, 2018

403 Forbidden should be used when a client is trying to do a request it’s not allowed to do for a variety of reasons. Maybe the user doesn’t have the right permissions, or maybe it’s logged in with the wrong credentials.

It’s a good generic status code for anything that’s “not allowed” for a variety of reasons, and is extremely common.

Example

HTTP/1.1 403 Forbidden
Content-Type: text/html
Content-Length: 32

<h1>403: You can't do that!</h1>

However, there are a few HTTP status codes for more specific situations.

There are a few others, and they’ll be covered on this blog in the future.

References


« Speeding Up PHP with OPcache in Docker - Laravel News

Scotch.io - How I Migrated From WordPress to a … »