Developer tools

HTTP status codes and CSP builder

Look up what an HTTP status code means, and build a Content-Security-Policy header directive by directive.

Runs in your browser. Nothing you enter is uploaded.

200OKThe request worked.
201CreatedThe request worked and created something new.
204No ContentThe request worked and there is nothing to send back.
206Partial ContentPart of the file, for a range request.
301Moved PermanentlyThe page moved for good; search engines follow it.
302FoundA temporary redirect; the method may change to GET.
303See OtherGo to another URL with GET, often after a form post.
304Not ModifiedThe cached copy is still good.
307Temporary RedirectA temporary redirect that keeps the method.
308Permanent RedirectA permanent redirect that keeps the method.
400Bad RequestThe server cannot read the request.
401UnauthorizedYou need to sign in first.
403ForbiddenYou are signed in but not allowed.
404Not FoundNothing exists at this URL.
405Method Not AllowedThis URL does not accept that method.
408Request TimeoutThe client took too long to send the request.
409ConflictThe request clashes with the current state, such as an edit conflict.
410GoneIt was here and was removed on purpose.
413Content Too LargeThe request body is too big.
415Unsupported Media TypeThe server does not accept this content type.
422Unprocessable ContentThe request is well formed but the data is invalid.
429Too Many RequestsRate limited; wait before trying again.
500Internal Server ErrorSomething broke on the server.
501Not ImplementedThe server does not support this feature.
502Bad GatewayA server in between got a bad answer from the next one.
503Service UnavailableThe server is down or overloaded for now.
504Gateway TimeoutA server in between waited too long for the next one.

Content-Security-Policy

About this tool

This page lists 27 common HTTP status codes with their reason phrases and a short explanation, searchable by code or name. Below it, a builder writes a Content-Security-Policy header from 11 directives, leaves out the empty ones and can add upgrade-insecure-requests.

What is the difference between 301 and 308?
Both are permanent redirects. 308 requires the client to keep the request method, while with 301 a POST may be repeated as a GET.
Where do I put the generated CSP?
Send it as a response header from your server or hosting config. The defaults start strict, with default-src 'self' and object-src 'none', so add the sources your page actually loads.