cd .. (all tools)

HTTP status + MIME

Look up a status code or a media type.

// Runs in your browser. Nothing you type here is sent anywhere.

Status codes: 61. Media types: 73.

A code like 404 or 4xx, a word like redirect, a type like json, or an extension like .png.

Status codes

  • 1xx: informational
  • 100
    Continue

    The headers are fine; send the body.

  • 101
    Switching Protocols

    The server switches to the protocol the client asked for, such as WebSocket.

  • 102
    Processing

    Received and being worked on; there is no answer yet (WebDAV).

  • 103
    Early Hints

    Headers sent ahead of the answer, so the browser can start preloading.

  • 2xx: it worked
  • 200
    OK

    It worked. The answer is in the body.

  • 201
    Created

    It worked and something new was made; Location says where it is.

  • 202
    Accepted

    Received, but not done yet: the work happens later.

  • 203
    Non-Authoritative Information

    It worked, but a proxy changed the answer on the way.

  • 204
    No Content

    It worked and there is nothing to send back.

  • 205
    Reset Content

    It worked; clear the form the request came from.

  • 206
    Partial Content

    Only the part that was asked for with a Range header.

  • 207
    Multi-Status

    Several results in one answer, each with its own status (WebDAV).

  • 208
    Already Reported

    These members were already listed earlier in the answer (WebDAV).

  • 226
    IM Used

    The answer is a change applied to what the client already has.

  • 3xx: look somewhere else
  • 300
    Multiple Choices

    There is more than one version; the client chooses.

  • 301
    Moved Permanently

    Moved for good. Use the new address from now on; the method may change to GET.

  • 302
    Found

    Somewhere else for now. Keep using the old address; the method may change to GET.

  • 303
    See Other

    The answer is at another address; fetch it with GET.

  • 304
    Not Modified

    Nothing changed since the copy the client has: use that.

  • 307
    Temporary Redirect

    Somewhere else for now; repeat the request there with the same method.

  • 308
    Permanent Redirect

    Moved for good; repeat the request there with the same method.

  • 4xx: the request is the problem
  • 400
    Bad Request

    The request is not understood: wrong syntax or invalid data.

  • 401
    Unauthorized

    Not signed in, or the credentials are wrong. Sign in and try again.

  • 402
    Payment Required

    Reserved for payments; some APIs use it when a paid limit is reached.

  • 403
    Forbidden

    It is known who you are, but you may not do this.

  • 404
    Not Found

    There is nothing at this address.

  • 405
    Method Not Allowed

    This address exists, but not for this method; Allow says which ones work.

  • 406
    Not Acceptable

    Nothing here matches what the Accept headers ask for.

  • 407
    Proxy Authentication Required

    Sign in at the proxy first.

  • 408
    Request Timeout

    The server waited too long for the request to arrive.

  • 409
    Conflict

    The request clashes with how things are now, such as an edit of an old version.

  • 410
    Gone

    It was here and has been removed for good.

  • 411
    Length Required

    A Content-Length header is required.

  • 412
    Precondition Failed

    A condition in the headers (If-Match, If-Unmodified-Since) does not hold.

  • 413
    Content Too Large

    The body is larger than the server accepts.

  • 414
    URI Too Long

    The address is longer than the server accepts.

  • 415
    Unsupported Media Type

    The server does not accept a body of this Content-Type.

  • 416
    Range Not Satisfiable

    The part asked for with Range lies outside the file.

  • 417
    Expectation Failed

    What the Expect header asks can not be met.

  • 418
    I'm a teapot

    A joke from 1998: the teapot refuses to brew coffee.

  • 421
    Misdirected Request

    The request reached a server that can not answer for this host.

  • 422
    Unprocessable Content

    Understood, but the data does not pass validation.

  • 423
    Locked

    The resource is locked (WebDAV).

  • 424
    Failed Dependency

    Failed because an earlier request it depends on failed (WebDAV).

  • 425
    Too Early

    The server will not risk a request that may be replayed.

  • 426
    Upgrade Required

    Switch to another protocol first; Upgrade says which.

  • 428
    Precondition Required

    The request has to be conditional (If-Match), to prevent lost updates.

  • 429
    Too Many Requests

    Too many requests in a short time; Retry-After says when to try again.

  • 431
    Request Header Fields Too Large

    The headers are too large, often because of cookies.

  • 451
    Unavailable For Legal Reasons

    Not available for legal reasons, such as a court order.

  • 5xx: the server is the problem
  • 500
    Internal Server Error

    Something went wrong on the server; the request is not to blame.

  • 501
    Not Implemented

    The server does not know this method.

  • 502
    Bad Gateway

    A proxy or gateway got an invalid answer from the server behind it.

  • 503
    Service Unavailable

    The server is overloaded or down for maintenance; try again later.

  • 504
    Gateway Timeout

    A proxy or gateway got no answer in time from the server behind it.

  • 505
    HTTP Version Not Supported

    The server does not support this version of HTTP.

  • 506
    Variant Also Negotiates

    A configuration error in content negotiation on the server.

  • 507
    Insufficient Storage

    The server has no room to store this (WebDAV).

  • 508
    Loop Detected

    The server ran in circles while handling the request (WebDAV).

  • 510
    Not Extended

    The request needs an extension the server does not have.

  • 511
    Network Authentication Required

    Sign in to the network first, as on hotel Wi-Fi.

Media types

TypeExtension
text/plain Plain text.txt
text/html HTML page.html .htm
text/css Stylesheet.css
text/javascript JavaScript.js .mjs
text/csv Comma-separated values.csv
text/markdown Markdown.md
text/calendar Calendar (iCalendar).ics
text/vcard Contact card (vCard).vcf
text/event-stream Server-sent events
application/json JSON.json
application/ld+json JSON-LD, linked data.jsonld
application/problem+json Error details from an API (RFC 9457)
application/manifest+json Web app manifest.webmanifest
application/x-ndjson JSON, one value per line.ndjson
application/xml XML.xml
application/xhtml+xml XHTML page.xhtml
application/rss+xml RSS feed.rss
application/atom+xml Atom feed.atom
application/yaml YAML.yaml .yml
application/toml TOML.toml
application/sql SQL.sql
application/wasm WebAssembly.wasm
application/x-www-form-urlencoded Form fields, as an HTML form sends them
multipart/form-data Form with files
application/octet-stream Bytes of an unknown kind; a browser downloads it.bin
application/pdf PDF document.pdf
application/zip Zip archive.zip
application/gzip Gzip archive.gz
application/x-tar Tar archive.tar
application/x-7z-compressed 7-Zip archive.7z
application/vnd.rar RAR archive.rar
application/epub+zip E-book (EPUB).epub
application/rtf Rich text.rtf
application/msword Word document, old format.doc
application/vnd.openxmlformats-officedocument.wordprocessingml.document Word document.docx
application/vnd.ms-excel Excel workbook, old format.xls
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Excel workbook.xlsx
application/vnd.ms-powerpoint PowerPoint presentation, old format.ppt
application/vnd.openxmlformats-officedocument.presentationml.presentation PowerPoint presentation.pptx
application/vnd.oasis.opendocument.text OpenDocument text.odt
application/vnd.oasis.opendocument.spreadsheet OpenDocument spreadsheet.ods
image/png PNG image.png
image/jpeg JPEG image.jpg .jpeg
image/gif GIF image.gif
image/webp WebP image.webp
image/avif AVIF image.avif
image/svg+xml SVG drawing.svg
image/apng Animated PNG.apng
image/vnd.microsoft.icon Icon (favicon.ico).ico
image/bmp Bitmap image.bmp
image/tiff TIFF image.tif .tiff
image/heic HEIC image, from an iPhone.heic
audio/mpeg MP3 audio.mp3
audio/mp4 MPEG-4 audio.m4a
audio/aac AAC audio.aac
audio/ogg Ogg audio.ogg .oga
audio/wav WAV audio.wav
audio/webm WebM audio.weba
audio/flac FLAC audio.flac
audio/midi MIDI.mid .midi
video/mp4 MPEG-4 video.mp4
video/webm WebM video.webm
video/ogg Ogg video.ogv
video/quicktime QuickTime video.mov
video/mpeg MPEG video.mpeg .mpg
video/x-msvideo AVI video.avi
video/mp2t MPEG transport stream.ts
application/vnd.apple.mpegurl HLS playlist, for streaming.m3u8
application/dash+xml DASH manifest, for streaming.mpd
font/woff2 WOFF2 font.woff2
font/woff WOFF font.woff
font/ttf TrueType font.ttf
font/otf OpenType font.otf