You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -79,10 +79,16 @@ These validators are passed into the classes in the route function, such as:
79
79
### Overwriting default errors
80
80
By default, the error messages are returned as a JSON response, with the detailed error in the "error" field. However, this can be edited by passing a custom error function into the ValidateParameters decorator. For example:
81
81
```py
82
-
defmy_error_func(error_message):
83
-
returnf"This is the error! Please sort it out! {error_message}", 400
0 commit comments