django rest framework - What's a simple way to raise ValidationError in action-decorated method? -


I think my decoration work may be able to increase the validation error in some cases. How do I return 400 error with json in a simple way, or at least error?

OK, I thought it: I should take an APIException, which enclose detailed message in Jason is.


Comments

Popular posts from this blog

c# - Highlight all words containing a letter in a richtextbox -

Editing Python Class in Shell and SQLAlchemy -

java - JavaFX WebEngine Video Playback in Linux -