aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/requests.md
diff options
context:
space:
mode:
authorTom Christie2012-10-14 22:43:07 +0100
committerTom Christie2012-10-14 22:43:07 +0100
commit551c86c43a71f7dee5cce68c5142714301f6196f (patch)
treeb9303172e27ea71b90dadf4c3a0dc303c1c0972e /docs/api-guide/requests.md
parent7a89d7a770d310f8b72178c561fcd04e6c15e5c4 (diff)
downloaddjango-rest-framework-551c86c43a71f7dee5cce68c5142714301f6196f.tar.bz2
Documentation for parsers
Diffstat (limited to 'docs/api-guide/requests.md')
-rw-r--r--docs/api-guide/requests.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/api-guide/requests.md b/docs/api-guide/requests.md
index 91563e3b..23d84a53 100644
--- a/docs/api-guide/requests.md
+++ b/docs/api-guide/requests.md
@@ -45,6 +45,8 @@ You won't typically need to access this property.
**Note:** If a client sends malformed content, then accessing `request.DATA` or `request.FILES` may raise a `ParseError`. By default REST framework's `APIView` class or `@api_view` decorator will catch the error and return a `400 Bad Request` response.
+If a client sends a request with a content-type that cannot be parsed then a `UnsupportedMediaType` exception will be raised, which by default will be caught and return a `415 Unsupported Media Type` response.
+
---
# Authentication