diff options
| author | Tom Christie | 2014-11-25 11:42:43 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-11-25 11:42:43 +0000 | 
| commit | 2e726e22a394347b7337eb38a2a3a1b0ccde88bc (patch) | |
| tree | bade6fc0990db4017978acb688730dcbfb20ddc9 /docs/api-guide/exceptions.md | |
| parent | 06fd63dade20e1a19276b7414a54b9f5d2ef8329 (diff) | |
| download | django-rest-framework-2e726e22a394347b7337eb38a2a3a1b0ccde88bc.tar.bz2 | |
request.DATA, request.FILES -> request.data
Diffstat (limited to 'docs/api-guide/exceptions.md')
| -rw-r--r-- | docs/api-guide/exceptions.md | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/docs/api-guide/exceptions.md b/docs/api-guide/exceptions.md index e61dcfa9..8a99abb9 100644 --- a/docs/api-guide/exceptions.md +++ b/docs/api-guide/exceptions.md @@ -100,7 +100,7 @@ For example, if your API relies on a third party service that may sometimes be u  **Signature:** `ParseError(detail=None)` -Raised if the request contains malformed data when accessing `request.DATA` or `request.FILES`. +Raised if the request contains malformed data when accessing `request.data`.  By default this exception results in a response with the HTTP status code "400 Bad Request". @@ -140,7 +140,7 @@ By default this exception results in a response with the HTTP status code "405 M  **Signature:** `UnsupportedMediaType(media_type, detail=None)` -Raised if there are no parsers that can handle the content type of the request data when accessing `request.DATA` or `request.FILES`. +Raised if there are no parsers that can handle the content type of the request data when accessing `request.data`.  By default this exception results in a response with the HTTP status code "415 Unsupported Media Type". | 
