|
|
@ -2,7 +2,7 @@ Implementing API Exceptions |
|
|
|
=========================== |
|
|
|
=========================== |
|
|
|
|
|
|
|
|
|
|
|
It's very common to implement RESTful APIs on top of Flask. One of the |
|
|
|
It's very common to implement RESTful APIs on top of Flask. One of the |
|
|
|
first thing that developers run into is the realization that the builtin |
|
|
|
first things that developers run into is the realization that the builtin |
|
|
|
exceptions are not expressive enough for APIs and that the content type of |
|
|
|
exceptions are not expressive enough for APIs and that the content type of |
|
|
|
:mimetype:`text/html` they are emitting is not very useful for API consumers. |
|
|
|
:mimetype:`text/html` they are emitting is not very useful for API consumers. |
|
|
|
|
|
|
|
|
|
|
|