mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Update release notes
This commit is contained in:
parent
2648442a6b
commit
d0f610be44
|
@ -653,7 +653,7 @@ If you need to restore the previous behavior you can include the `AllowPUTAsCrea
|
|||
|
||||
#### Customizing error responses.
|
||||
|
||||
The generic views now raise `ValidationError` for invalid data. This exception is then dealt with by the exception handler, rather than the view returning a `400 Bad Request` response directly.
|
||||
The generic views now raise `ValidationFailed` exception for invalid data. This exception is then dealt with by the exception handler, rather than the view returning a `400 Bad Request` response directly.
|
||||
|
||||
This change means that you can now easily customize the style of error responses across your entire API, without having to modify any of the generic views.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user