Kode status HTTP
Referensi lengkap kode status HTTP dari 1xx hingga 5xx, termasuk kode nonstandar seperti 418, 429, 451, 499, dan 599, dengan pencarian menurut kode atau kata kunci, penyaringan kategori, dan salin.
Berjalan di browser AndaSemua perhitungan dilakukan di browser Anda, data tidak pernah keluar dari perangkat ini.
Cari kode status
Total 65 kode / 65
100ContinueStandarPenjelasan bahasa InggrisThe server received the request headers; the client should continue sending the body.
Arti bahasa Mandarin服务器已收到请求头,客户端应继续发送请求体。
101Switching ProtocolsStandarPenjelasan bahasa InggrisThe server is switching protocols as requested by the client.
Arti bahasa Mandarin服务器按客户端的 Upgrade 请求切换协议。
102ProcessingStandarPenjelasan bahasa InggrisWebDAV: the server has received the request and is still processing it.
Arti bahasa MandarinWebDAV:服务器已收到请求并正在处理,暂时没有响应。
103Early HintsStandarPenjelasan bahasa InggrisReturns resource hints before the final response.
Arti bahasa Mandarin在最终响应之前先返回资源预加载提示。
200OKStandarPenjelasan bahasa InggrisThe request succeeded and the response body carries the result.
Arti bahasa Mandarin请求成功,响应内容在正文里。
201CreatedStandarPenjelasan bahasa InggrisThe request succeeded and a new resource was created; Location usually points to it.
Arti bahasa Mandarin请求成功并创建了新资源,通常配合 Location 头返回新地址。
202AcceptedStandarPenjelasan bahasa InggrisThe request was accepted but processing is not finished yet.
Arti bahasa Mandarin请求已被接受但尚未处理完成,结果稍后可用。
203Non-Authoritative InformationStandarPenjelasan bahasa InggrisThe returned metadata comes from a proxy rather than the origin server.
Arti bahasa Mandarin返回的元信息来自代理,不是源服务器的最新版本。
204No ContentStandarPenjelasan bahasa InggrisThe request succeeded but there is no body to return.
Arti bahasa Mandarin请求成功但正文为空,常用于删除或提交后的响应。
205Reset ContentStandarPenjelasan bahasa InggrisThe client should reset the document view, for example a form.
Arti bahasa Mandarin请求成功,客户端应重置当前文档的视图(如表单)。
206Partial ContentStandarPenjelasan bahasa InggrisRange request: only a part of the resource is returned.
Arti bahasa Mandarin断点续传:只返回了资源的一部分。
207Multi-StatusStandarPenjelasan bahasa InggrisWebDAV: several sub-requests each carry their own status.
Arti bahasa MandarinWebDAV:多个子请求各有自己的状态码。
208Already ReportedStandarPenjelasan bahasa InggrisWebDAV: the members were already reported in an earlier part of the response.
Arti bahasa MandarinWebDAV:同一集合里的成员已经在前面的响应里报告过。
226IM UsedStandarPenjelasan bahasa InggrisThe server fulfilled the request using instance manipulations.
Arti bahasa Mandarin服务器已完成实例操纵,返回增量结果。
300Multiple ChoicesStandarPenjelasan bahasa InggrisThe resource has multiple representations and the client should choose one.
Arti bahasa Mandarin请求的资源有多种表示,需要客户端选择。
301Moved PermanentlyStandarPenjelasan bahasa InggrisThe resource moved permanently; search engines update their index.
Arti bahasa Mandarin资源永久重定向到新地址,搜索引擎会更新索引。
302FoundStandarPenjelasan bahasa InggrisTemporary redirect to another address.
Arti bahasa Mandarin资源临时重定向到另一个地址。
303See OtherStandarPenjelasan bahasa InggrisRedirect to another address, which should be fetched with GET.
Arti bahasa Mandarin重定向到另一个地址,并且应该改用 GET 获取结果。
304Not ModifiedStandarPenjelasan bahasa InggrisConditional cache hit: the resource is unchanged, use the local copy.
Arti bahasa Mandarin命中协商缓存,资源没有变化,直接使用本地副本。
305Use ProxyNonstandarPenjelasan bahasa InggrisDeprecated: the resource must be accessed through a proxy.
Arti bahasa Mandarin已弃用:要求通过代理访问资源。
306UnusedNonstandarPenjelasan bahasa InggrisDeprecated: a historical code that is reserved and unused.
Arti bahasa Mandarin已废弃:历史遗留的状态码,保留未用。
307Temporary RedirectStandarPenjelasan bahasa InggrisTemporary redirect that must keep the original request method.
Arti bahasa Mandarin临时重定向,但必须保持原来的请求方法。
308Permanent RedirectStandarPenjelasan bahasa InggrisPermanent redirect that must keep the original request method.
Arti bahasa Mandarin永久重定向,同样必须保持原来的请求方法。
400Bad RequestStandarPenjelasan bahasa InggrisThe request is malformed or the parameters are invalid.
Arti bahasa Mandarin请求语法错误或参数不合法,服务器无法处理。
401UnauthorizedStandarPenjelasan bahasa InggrisNot authenticated: sign in or provide valid credentials first.
Arti bahasa Mandarin未认证:需要先登录或提供有效的凭证。
402Payment RequiredStandarPenjelasan bahasa InggrisReserved; often used for APIs that require payment.
Arti bahasa Mandarin预留状态码,常被用于需要付费才能访问的场景。
403ForbiddenStandarPenjelasan bahasa InggrisAuthenticated but not allowed to access the resource.
Arti bahasa Mandarin已认证但没有访问权限。
404Not FoundStandarPenjelasan bahasa InggrisThe requested resource does not exist.
Arti bahasa Mandarin请求的资源不存在。
405Method Not AllowedStandarPenjelasan bahasa InggrisThe resource exists but does not support this HTTP method.
Arti bahasa Mandarin资源存在,但不支持这个请求方法。
406Not AcceptableStandarPenjelasan bahasa InggrisNo representation matches the Accept header.
Arti bahasa Mandarin无法返回符合 Accept 头要求的响应。
407Proxy Authentication RequiredStandarPenjelasan bahasa InggrisThe request must authenticate with the proxy first.
Arti bahasa Mandarin需要先通过代理服务器认证。
408Request TimeoutStandarPenjelasan bahasa InggrisThe server timed out waiting for the request.
Arti bahasa Mandarin服务器等待请求超时,客户端可以重试。
409ConflictStandarPenjelasan bahasa InggrisThe request conflicts with the current state of the resource.
Arti bahasa Mandarin请求与资源当前状态冲突,例如并发写入。
410GoneStandarPenjelasan bahasa InggrisThe resource existed but has been permanently removed.
Arti bahasa Mandarin资源曾经存在但已被永久删除。
411Length RequiredStandarPenjelasan bahasa InggrisThe Content-Length header is required.
Arti bahasa Mandarin缺少 Content-Length 头。
412Precondition FailedStandarPenjelasan bahasa InggrisA precondition such as If-Match failed.
Arti bahasa Mandarin条件请求的预置条件(If-Match 等)不满足。
413Content Too LargeStandarPenjelasan bahasa InggrisThe request body exceeds the size the server accepts.
Arti bahasa Mandarin请求体超过服务器允许的大小。
414URI Too LongStandarPenjelasan bahasa InggrisThe request URL is too long.
Arti bahasa Mandarin请求的 URL 太长。
415Unsupported Media TypeStandarPenjelasan bahasa InggrisThe media type of the request body is not supported.
Arti bahasa Mandarin请求体的媒体类型不被支持。
416Range Not SatisfiableStandarPenjelasan bahasa InggrisThe requested byte range cannot be satisfied.
Arti bahasa Mandarin请求的字节范围无法满足。
417Expectation FailedStandarPenjelasan bahasa InggrisThe expectation given in the Expect header cannot be met.
Arti bahasa MandarinExpect 头里的期望不能满足。
418I'm a teapotNonstandarPenjelasan bahasa InggrisApril Fools code: the server is a teapot and cannot brew coffee.
Arti bahasa Mandarin愚人节彩蛋状态码:服务器是一把茶壶,不能煮咖啡。
421Misdirected RequestStandarPenjelasan bahasa InggrisThe request was directed at a server that cannot serve this host.
Arti bahasa Mandarin请求被发给了无法为该域名提供服务的服务器。
422Unprocessable ContentStandarPenjelasan bahasa InggrisThe request is well-formed but semantically invalid.
Arti bahasa Mandarin请求格式正确但语义有误,无法处理。
423LockedStandarPenjelasan bahasa InggrisWebDAV: the resource is locked.
Arti bahasa MandarinWebDAV:资源已被锁定。
424Failed DependencyStandarPenjelasan bahasa InggrisWebDAV: the request failed because a previous request failed.
Arti bahasa MandarinWebDAV:前置请求失败,本次请求无法完成。
425Too EarlyStandarPenjelasan bahasa InggrisThe server is unwilling to process a request that might be replayed.
Arti bahasa Mandarin服务器不愿处理可能被重放的早期请求。
426Upgrade RequiredStandarPenjelasan bahasa InggrisThe client should switch to another protocol.
Arti bahasa Mandarin需要升级到其他协议才能继续。
428Precondition RequiredStandarPenjelasan bahasa InggrisThe origin server requires the request to be conditional.
Arti bahasa Mandarin要求请求带上条件头,避免并发覆盖。
429Too Many RequestsStandarPenjelasan bahasa InggrisToo many requests in a short time: rate limited.
Arti bahasa Mandarin短时间内请求过多,已被限流,请稍后重试。
431Request Header Fields Too LargeStandarPenjelasan bahasa InggrisThe request header fields are too large.
Arti bahasa Mandarin请求头总大小超出限制。
451Unavailable For Legal ReasonsStandarPenjelasan bahasa InggrisThe resource cannot be provided for legal reasons.
Arti bahasa Mandarin因法律原因无法提供该资源。
499Client Closed RequestNonstandarPenjelasan bahasa InggrisNon-standard (nginx): the client closed the connection before the response.
Arti bahasa Mandarin非标准(nginx):客户端在服务器响应前断开了连接。
500Internal Server ErrorStandarPenjelasan bahasa InggrisAn unexpected error occurred on the server.
Arti bahasa Mandarin服务器内部错误,通常是代码异常。
501Not ImplementedStandarPenjelasan bahasa InggrisThe server does not support the functionality required.
Arti bahasa Mandarin服务器不支持该请求需要的功能。
502Bad GatewayStandarPenjelasan bahasa InggrisThe gateway received an invalid response from the upstream server.
Arti bahasa Mandarin网关或代理从上游收到了无效响应。
503Service UnavailableStandarPenjelasan bahasa InggrisThe server is temporarily unavailable, for example overloaded or in maintenance.
Arti bahasa Mandarin服务暂时不可用,通常是过载或维护中。
504Gateway TimeoutStandarPenjelasan bahasa InggrisThe gateway timed out waiting for the upstream server.
Arti bahasa Mandarin网关等待上游响应超时。
505HTTP Version Not SupportedStandarPenjelasan bahasa InggrisThe HTTP protocol version used in the request is not supported.
Arti bahasa Mandarin服务器不支持请求使用的 HTTP 版本。
506Variant Also NegotiatesStandarPenjelasan bahasa InggrisTransparent content negotiation results in a circular reference.
Arti bahasa Mandarin内容协商配置错误,导致循环引用。
507Insufficient StorageStandarPenjelasan bahasa InggrisWebDAV: the server cannot store the representation needed.
Arti bahasa MandarinWebDAV:服务器存储空间不足。
508Loop DetectedStandarPenjelasan bahasa InggrisWebDAV: an infinite loop was detected while processing the request.
Arti bahasa MandarinWebDAV:处理请求时检测到死循环。
510Not ExtendedStandarPenjelasan bahasa InggrisFurther extensions to the request are required.
Arti bahasa Mandarin需要对请求做进一步扩展才能满足策略。
511Network Authentication RequiredStandarPenjelasan bahasa InggrisThe client needs to authenticate, for example on a captive portal.
Arti bahasa Mandarin需要先通过网络的认证(例如公共 Wi-Fi 登录)。
599Network Connect Timeout ErrorNonstandarPenjelasan bahasa InggrisNon-standard: the proxy timed out connecting upstream.
Arti bahasa Mandarin非标准:代理连接上游超时(常见于 nginx 日志)。
Apa yang bisa dilakukan alat ini
- Mencari kode status yang belum dikenal dari respons API atau log yang penuh 4xx/5xx, lalu melihat frasa standar dan maknanya bagi klien maupun server.
- Menulis dokumentasi API atau tabel kode kesalahan dengan menyalin frasa baku (404 Not Found, 429 Too Many Requests) alih-alih mengarang sendiri.
- Memastikan asal kode non-standar seperti 499 dan 599 saat membaca access log nginx — keduanya konvensi nginx, bukan definisi RFC.
- Mengajar atau mempelajari HTTP dengan menelusuri kategori 1xx–5xx, termasuk perbedaan 401 (belum terautentikasi) dan 403 (sudah terautentikasi tetapi tidak berhak).
Contoh
Masukan
404
Keluaran
404 Not Found (standar) Arti dalam bahasa Tionghoa: 请求的资源不存在。 Penjelasan dalam bahasa Inggris: The requested resource does not exist.
Setiap baris hasil di halaman terdiri dari tepat tiga baris itu: kode dan frasa dengan label „standar / non-standar“, lalu arti dalam bahasa Tionghoa dan penjelasan dalam bahasa Inggris; tombol salin memberi satu baris polos 404 Not Found. Masukan angka dicocokkan persis lebih dulu lalu sebagai awalan: 404 menghasilkan satu entri ini, sedangkan 4 menampilkan 30 kode di rentang 4xx. Untuk pencarian kata kunci ketik sebuah kata — „timeout“ mengenai 408, 504, dan 599.
Pertanyaan yang sering diajukan
Apa bedanya 401 dan 403 sebenarnya?
401 Unauthorized berarti „belum terautentikasi“: server mengirim header WWW-Authenticate yang menjelaskan cara autentikasi. 403 Forbidden berarti Anda sudah terautentikasi tetapi tidak berhak, jadi login ulang tidak menolong. Nama yang tepat untuk 401 sebenarnya Unauthenticated — nama yang menyesatkan itu warisan spesifikasi.
Bagaimana menentukan apakah 4xx atau 5xx yang salah?
4xx menandakan permintaannya sendiri yang salah, dan mengulanginya tanpa perubahan biasanya gagal lagi, jadi perbaiki dulu permintaannya. 5xx menandakan server bermasalah, sehingga klien boleh mencoba ulang dengan backoff. 502 dan 504 biasanya terjadi di jalur gateway ke upstream, dan baik 429 maupun 503 membawa Retry-After yang menyebut lama menunggu.
Mengapa 418, 499, dan 599 ditandai non-standar?
Karena tidak ada di registri IETF. 418 I'm a teapot adalah lelucon April Mop dari RFC 2324 tahun 1998, sedangkan 499 dan 599 didefinisikan nginx (klien menutup lebih awal, proksi kehabisan waktu ke upstream). Keduanya pantas muncul di log, bukan di kontrak API publik.
Mengapa 304 tidak punya body respons?
304 Not Modified adalah hasil cache bersyarat: browser bertanya dengan If-None-Match atau If-Modified-Since, server melihat sumber daya tidak berubah dan hanya membalas 304 agar salinan lokal dipakai, sehingga transfer dihemat. Karena itu tidak ada body dan biasanya juga tidak ada Content-Type.
Bisakah mencari dengan kata, bukan angka?
Bisa. Masukan non-angka dicocokkan tanpa membedakan huruf besar-kecil pada frasa, arti bahasa Tionghoa, dan penjelasan bahasa Inggris, sehingga istilah Tionghoa seperti „重定向“, „超时“, atau „限流“ juga berhasil. Masukan angka memakai pencocokan persis lalu awalan, jadi string campuran seperti 4xx tidak menemukan apa pun.
Kata kunci:httpstatus code404500http statusrest