diff options
| author | Tom Christie | 2014-12-17 12:54:31 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-12-17 12:54:31 +0000 |
| commit | 47fe6977077ae33dfe2f8b6d04d81083b9b9f4d7 (patch) | |
| tree | 58488ee2e6533032d942dc65f038bbbc43462a87 /docs/api-guide/exceptions.md | |
| parent | b6ee784240b3c7f6cd62af5b6fe6d1014d7bf6d4 (diff) | |
| parent | 05a6eaec8aebdca2248b9e1069a15769fd85a480 (diff) | |
| download | django-rest-framework-47fe6977077ae33dfe2f8b6d04d81083b9b9f4d7.tar.bz2 | |
Merge pull request #2285 from tomchristie/versioning
Versioning
Diffstat (limited to 'docs/api-guide/exceptions.md')
| -rw-r--r-- | docs/api-guide/exceptions.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/api-guide/exceptions.md b/docs/api-guide/exceptions.md index 31a8431b..50bd14dd 100644 --- a/docs/api-guide/exceptions.md +++ b/docs/api-guide/exceptions.md @@ -128,6 +128,14 @@ Raised when an authenticated request fails the permission checks. By default this exception results in a response with the HTTP status code "403 Forbidden". +## NotFound + +**Signature:** `NotFound(detail=None)` + +Raised when a resource does not exists at the given URL. This exception is equivalent to the standard `Http404` Django exception. + +By default this exception results in a response with the HTTP status code "404 Not Found". + ## MethodNotAllowed **Signature:** `MethodNotAllowed(method, detail=None)` @@ -136,6 +144,14 @@ Raised when an incoming request occurs that does not map to a handler method on By default this exception results in a response with the HTTP status code "405 Method Not Allowed". +## NotAcceptable + +**Signature:** `NotAcceptable(detail=None)` + +Raised when an incoming request occurs with an `Accept` header that cannot be satisfied by any of the available renderers. + +By default this exception results in a response with the HTTP status code "406 Not Acceptable". + ## UnsupportedMediaType **Signature:** `UnsupportedMediaType(media_type, detail=None)` |
