Skip to main content

Referencia de Codigos de Status HTTP

Pesquise e navegue por todos os codigos de status HTTP com descricoes. Filtre por numero do codigo, nome ou descricao em todas as cinco categorias.

Ad (leaderboard)
Exibindo 0 codigos de status

1xx — Informational

100
Continue

The server has received the request headers and the client should proceed to send the request body.

101
Switching Protocols

The server is switching protocols as requested by the client via the Upgrade header.

102
Processing

The server has received and is processing the request, but no response is available yet.

103
Early Hints

Used to return some response headers before final HTTP message, allowing preloading of resources.

2xx — Success

200
OK

The request has succeeded. The meaning depends on the HTTP method used.

201
Created

The request has been fulfilled and a new resource has been created.

202
Accepted

The request has been accepted for processing, but the processing has not been completed.

203
Non-Authoritative Information

The returned metadata is from a local or third-party copy, not the origin server.

204
No Content

The server successfully processed the request but is not returning any content.

205
Reset Content

The server successfully processed the request and asks the client to reset the document view.

206
Partial Content

The server is delivering only part of the resource due to a Range header sent by the client.

207
Multi-Status

A WebDAV response that conveys information about multiple resources.

208
Already Reported

Used in DAV bindings to avoid enumerating the same resource multiple times.

3xx — Redirection

300
Multiple Choices

The request has more than one possible response. The user should choose one of them.

301
Moved Permanently

The resource has been permanently moved to a new URL. Search engines will update their links.

302
Found

The resource is temporarily at a different URL. The client should continue to use the original URL.

303
See Other

The response to the request can be found under another URL using a GET method.

304
Not Modified

The resource has not been modified since the last request. The client can use its cached version.

307
Temporary Redirect

The request should be repeated with another URL, but future requests should still use the original.

308
Permanent Redirect

The request and all future requests should be repeated using another URL. Method must not change.

4xx — Client Error

400
Bad Request

The server cannot process the request due to malformed syntax or invalid request framing.

401
Unauthorized

Authentication is required. The client must provide valid credentials to access the resource.

402
Payment Required

Reserved for future use. Originally intended for digital payment schemes.

403
Forbidden

The server understood the request but refuses to authorize it, even with authentication.

404
Not Found

The server cannot find the requested resource. The URL may be incorrect or the resource deleted.

405
Method Not Allowed

The HTTP method used is not supported for the requested resource.

406
Not Acceptable

The resource cannot generate content matching the Accept headers sent by the client.

407
Proxy Authentication Required

The client must first authenticate itself with the proxy server.

408
Request Timeout

The server timed out waiting for the request. The client may repeat the request.

409
Conflict

The request conflicts with the current state of the server, such as an edit conflict.

410
Gone

The resource is permanently gone and will not be available again. Different from 404.

411
Length Required

The server requires a Content-Length header to be sent with the request.

412
Precondition Failed

One or more conditions in the request header fields evaluated to false.

413
Payload Too Large

The request body is larger than the server is willing or able to process.

414
URI Too Long

The URI provided was too long for the server to process.

415
Unsupported Media Type

The media format of the requested data is not supported by the server.

416
Range Not Satisfiable

The range specified in the Range header cannot be fulfilled.

418
I'm a Teapot

The server refuses to brew coffee because it is a teapot. Defined in RFC 2324 as an April Fools joke.

422
Unprocessable Entity

The request was well-formed but could not be processed due to semantic errors.

425
Too Early

The server is unwilling to risk processing a request that might be replayed.

429
Too Many Requests

The user has sent too many requests in a given amount of time (rate limiting).

431
Request Header Fields Too Large

The server refuses the request because the header fields are too large.

451
Unavailable For Legal Reasons

The resource is unavailable due to legal demands, such as government censorship.

5xx — Server Error

500
Internal Server Error

The server encountered an unexpected condition that prevented it from fulfilling the request.

501
Not Implemented

The server does not support the functionality required to fulfill the request.

502
Bad Gateway

The server acting as a gateway received an invalid response from the upstream server.

503
Service Unavailable

The server is temporarily unable to handle the request due to overload or maintenance.

504
Gateway Timeout

The server acting as a gateway did not receive a timely response from the upstream server.

505
HTTP Version Not Supported

The server does not support the HTTP version used in the request.

507
Insufficient Storage

The server cannot store the representation needed to complete the request.

508
Loop Detected

The server detected an infinite loop while processing the request.

511
Network Authentication Required

The client needs to authenticate to gain network access, such as a captive portal.

Rate this tool
0.0 / 5 · 0 ratings

Embed This Calculator

Add this calculator to your website for free. Copy the single line of code below and paste it into your HTML. The calculator auto-resizes to fit your page.

<script src="https://calchammer.com/embed.js" data-calculator="http-status-code-reference" data-category="everyday"></script>
data-theme "light", "dark", or "auto"
data-values Pre-fill inputs, e.g. "amount=1000"
data-max-width Max width, e.g. "600px"
data-border "true" or "false"
Or use an iframe instead
<iframe src="https://calchammer.com/embed/everyday/http-status-code-reference" width="100%" height="500" style="border:none;border-radius:12px;" title="Http Status Reference Calculator"></iframe>

Preview

yoursite.com/blog
Http Status Reference Calculator auto-resizes here
Ad (in_results)

Entendendo os Codigos de Status HTTP

Codigos de status HTTP sao numeros de tres digitos que um servidor retorna em resposta a cada requisicao HTTP. Eles fazem parte da especificacao HTTP e fornecem uma maneira padronizada para os servidores comunicarem o resultado de uma requisicao ao cliente. Quando voce visita uma pagina web, seu navegador envia uma requisicao HTTP ao servidor, e o servidor responde com um codigo de status junto com o conteudo solicitado ou uma mensagem de erro. Entender esses codigos e fundamental para desenvolvimento web, design de API, administracao de servidores e depuracao de problemas de rede.

Os codigos de status sao agrupados em cinco classes com base no primeiro digito. Cada classe representa um tipo diferente de resposta. Os codigos 1xx sao informativos, indicando que a requisicao foi recebida e o processamento esta continuando. Os codigos 2xx sinalizam sucesso, significando que a requisicao foi recebida, entendida e aceita. Os codigos 3xx indicam redirecionamento, informando ao cliente que deve tomar acoes adicionais para completar a requisicao. Os codigos 4xx representam erros do cliente, onde a requisicao contem sintaxe incorreta ou nao pode ser atendida. Os codigos 5xx indicam erros do servidor, onde o servidor falhou ao atender uma requisicao valida.

Ad (in_content)

As Cinco Categorias de Codigos de Status

Respostas Informativas 1xx

Respostas informativas indicam que o servidor recebeu a requisicao e esta continuando a processa-la. A mais notavel e 100 Continue, que informa ao cliente para prosseguir com o envio do corpo da requisicao apos enviar apenas os cabecalhos. Isso e util para uploads grandes onde o cliente quer verificar se o servidor aceitara a requisicao antes de transmitir um payload potencialmente grande. O 103 Early Hints e uma adicao mais recente que permite ao servidor enviar cabecalhos preliminares antes da resposta final, permitindo que o navegador pre-carregue folhas de estilo e scripts enquanto o servidor prepara a resposta principal.

Codigos de Sucesso 2xx

Codigos de sucesso confirmam que a requisicao foi processada corretamente. O 200 OK e o mais comum, retornado para requisicoes GET bem-sucedidas padrao. O 201 Created e usado quando um novo recurso foi criado, tipicamente em resposta a uma requisicao POST. O 204 No Content indica sucesso sem corpo de resposta, comumente usado para operacoes DELETE e acoes de API que nao precisam retornar dados. O 206 Partial Content suporta requisicoes de intervalo, permitindo que clientes baixem arquivos grandes em partes ou retomem downloads interrompidos.

Redirecionamento 3xx e Codigos de Erro 4xx/5xx

Codigos de redirecionamento instruem o cliente a procurar o recurso solicitado em outro lugar. A distincao entre 301 Moved Permanently e 302 Found e critica para SEO, pois mecanismos de busca os tratam de forma diferente ao transferir autoridade de links. Codigos de erro do cliente na faixa 4xx cobrem tudo, desde requisicoes malformadas (400) ate falhas de autenticacao (401, 403), recursos inexistentes (404) e limitacao de taxa (429). Codigos de erro do servidor na faixa 5xx indicam problemas no lado do servidor, desde falhas gerais (500) ate respostas de bad gateway (502) e indisponibilidade do servico (503). Monitorar esses codigos ajuda equipes de operacoes a identificar e resolver problemas rapidamente.

Codigos de Status Comuns no Desenvolvimento de API

APIs RESTful dependem fortemente de codigos de status para comunicar resultados. Uma API bem projetada usa 200 para leituras bem-sucedidas, 201 para criacoes bem-sucedidas, 204 para exclusoes bem-sucedidas, 400 para erros de validacao, 401 para autenticacao ausente, 403 para permissoes insuficientes, 404 para recursos que nao existem, 409 para conflitos como entradas duplicadas, 422 para requisicoes semanticamente invalidas e 429 para requisicoes com taxa limitada. O uso consistente de codigos de status torna as APIs previsiveis e mais faceis de integrar pelos consumidores.

Perguntas Frequentes

O que sao codigos de status HTTP?

Numeros de tres digitos retornados por servidores web indicando o resultado de uma requisicao. Sao agrupados em cinco classes: 1xx Informativo, 2xx Sucesso, 3xx Redirecionamento, 4xx Erro do Cliente e 5xx Erro do Servidor.

O que significam os codigos de status 4xx?

Codigos 4xx indicam erros do cliente. A requisicao estava malformada, nao autorizada ou apontava para um recurso inexistente. Exemplos comuns incluem 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found e 429 Too Many Requests.

Qual e a diferenca entre redirecionamentos 301 e 302?

301 e um redirecionamento permanente que informa navegadores e mecanismos de busca para atualizarem suas URLs. 302 e um redirecionamento temporario onde a URL original ainda deve ser usada para requisicoes futuras. 301 transfere a autoridade de links para SEO; 302 nao transfere.

O que e o codigo de status HTTP 418?

Uma brincadeira de Primeiro de Abril da RFC 2324 que define o Hyper Text Coffee Pot Control Protocol. Um bule retorna 418 quando solicitado a preparar cafe. Apesar de ser humoristico, foi amplamente implementado como um Easter egg.

Quando devo usar uma resposta 204 No Content?

Use 204 para requisicoes bem-sucedidas que nao precisam de corpo de resposta, como operacoes DELETE, atualizacoes bem-sucedidas onde o cliente ja possui os dados e acoes de API do tipo disparar-e-esquecer.

Related Calculators

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and should not be considered professional expert advice. Consult a qualified professional before making decisions based on these calculations. See our full Disclaimer.