mirror of
https://github.com/rmaake1/httpstatuses.git
synced 2024-11-02 00:32:36 +01:00
62df9e637c
* Add Python status constants * Add Python 2, Python 3+, Python 3.5+ status constants
23 lines
875 B
Markdown
23 lines
875 B
Markdown
---
|
|
set: 4
|
|
code: 415
|
|
title: Unsupported Media Type
|
|
references:
|
|
"Rails HTTP Status Symbol": ":unsupported_media_type"
|
|
"Go HTTP Status Constant": "http.StatusUnsupportedMediaType"
|
|
"Symfony HTTP Status Constant": "Response::HTTP_UNSUPPORTED_MEDIA_TYPE"
|
|
"Python2 HTTP Status Constant": "httplib.UNSUPPORTED_MEDIA_TYPE"
|
|
"Python3+ HTTP Status Constant": "http.client.UNSUPPORTED_MEDIA_TYPE"
|
|
"Python3.5+ HTTP Status Constant": "http.HTTPStatus.UNSUPPORTED_MEDIA_TYPE"
|
|
---
|
|
|
|
The origin server is refusing to service the request because the payload is in a format not supported by this method on the target resource.
|
|
|
|
The format problem might be due to the request's indicated Content-Type or Content-Encoding, or as a result of inspecting the data directly.
|
|
|
|
---
|
|
|
|
* Source: [RFC7231 Section 6.5.13][1]
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.13>
|