get /error/405/method-not-allowed
405 method not allowed
General error response. As this endpoint is static, it can not return specific details or logs for a previously sent error response.
Returned when the route exists but does not support the used HTTP method, e.g. POST /instance-configuration.
Example problem response body (application/problem+json):
{ "type": "https://api.example.com/error/405/method-not-allowed", "title": "Method not allowed", "status": 405, "instance": "urn:uuid:02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI", "detail": "Endpoint does not support requested method, or you do not have sufficient permissions."}The response also includes an Allow header listing the HTTP methods the route does support.
Request
curl \ https://api.example.com/error/405/method-not-allowedimport requests
url = "https://api.example.com/error/405/method-not-allowed"
response = requests.get(url)
print(response.json())const url = 'https://api.example.com/error/405/method-not-allowed';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://api.example.com/error/405/method-not-allowed');
echo $response->getBody();Response
_____ _ _ _ _ ____ ___ | ____|_ __ ___ | |__ ___ _ __ | \ | | _____ ___ _ ___ / \ | _ \_ _| | _| | '_ ` _ \| '_ \ / _ \ '__| | \| |/ _ \ \/ / | | / __| / _ \ | |_) | | | |___| | | | | | |_) | __/ | | |\ | __/⟩ ⟨| |_| \__ \ / ___ \| __/| | |_____|_| |_| |_|_.__/ \___|_| |_| \_|\___/_/\_\\__,_|___/ /_/ \_\_| |___|
Error 405 - Method Not Allowed
The requested route exists, but does not support the used HTTP method.
Link to the documentation: https://ember-nexus.github.io/api
Link to http.dev's explanation of the 405 error code: https://http.dev/405Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-None-MatchAccess-Control-Allow-Methods: GET, HEAD, OPTIONSAccess-Control-Allow-Origin: *Access-Control-Expose-Headers: ETagAllow: GET, HEAD, OPTIONSCache-Control: no-cache, privateX-Powered-By: Ember Nexus API{ "type": "string"}Request Header
Response Header
Access-Control-Allow-Headers
always
Lists the request headers which the endpoint reads and which browsers may send in cross-origin requests. Headers are listed explicitly, as the wildcard does not cover Authorization; resumable upload headers, for example, are only listed by upload endpoints.
Access-Control-Allow-Methods
always
Indicates which HTTP methods are permitted for cross-origin requests, typically returned in preflight responses.
Access-Control-Allow-Origin
always
Specifies which origin may access the resource: the origin of the request (default), or * if cors.allowedOrigins is set to the wildcard. Not sent to origins which are not part of a configured list of cors.allowedOrigins.
Access-Control-Expose-Headers
optional
Lists the response headers which the endpoint can send and which browsers may access from JavaScript beyond the default restricted set. Only headers of the endpoint are listed; the header is omitted if the endpoint has none.
Allow
always
Lists the HTTP methods supported by the endpoint; returned alongside a Method Not Allowed response.
Cache-Control
always
Directives controlling caching behavior for the response.