aboutsummaryrefslogtreecommitdiff
path: root/files/pt-pt/web/http/status/405/index.html
blob: abe104da6bf80e6dec951721856bf7a0bcf20832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: 405 Method Not Allowed
slug: Web/HTTP/Status/405
tags:
  - Código de resposta HTTP
  - Erro de cliente
  - HTTP
  - Referencia
  - Status code
translation_of: Web/HTTP/Status/405
---
<div>{{HTTPSidebar}}</div>

<p>O código de resposta HTTP (HyperText Transfer Protocol) <code>405 Method Not Allowed</code> indica que o método do pedido é conhecido pelo servidor, mas não é suportado pelo recurso alvo.</p>

<p class="newpage">O servidor PRECISA gerar um campo de cabeçalho chamado <code>Allow</code> numa resposta 405 contendo uma lista dos métodos que o recurso alvo atualmente suporta.</p>

<h2 id="Status">Status</h2>

<pre class="syntaxbox notranslate">405 Method Not Allowed</pre>

<h2 id="Especificações">Especificações</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Especificação</th>
   <th scope="col">Titulo</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{RFC("7231", "405 Method Not Allowed", "6.5.5")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
  </tr>
 </tbody>
</table>

<h2 id="Ver_também">Ver também</h2>

<ul>
 <li>{{HTTPHeader("Allow")}}</li>
 <li><em><a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html" rel="noopener">HTTP/1.1: Status Code Definitions</a></em></li>
 <li><em><a href="https://kinsta.com/blog/405-method-not-allowed-error/">How to Fix 405 Method Not Allowed</a></em></li>
 <li><em><a href="https://docs.microsoft.com/en-us/aspnet/web-api/overview/testing-and-debugging/troubleshooting-http-405-errors-after-publishing-web-api-applications">Troubleshooting HTTP 405</a></em></li>
</ul>