summaryrefslogtreecommitdiff
path: root/pages/tools.swig
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-10-04 21:46:24 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-10-04 22:03:23 +0200
commitf6579d0716fc05901d95d4247e0f5c0364ab3d38 (patch)
tree640a08b67eb0c6b091f69c1e912d88adccbc2d22 /pages/tools.swig
parent760b1dda71e706a9014b85d34025874e9ef7bbeb (diff)
JSON-ify the default invalid response type error
Code re-use is good. The previous implementation doesn't reuse existing text_error() functions and also forgoes using text/plain header with the text implementation. This fixes consistency where JSON is assumed to be the default output. It is a common practice among APIs to default all errors to JSON, such as the Stripe and Tumblr APIs.
Diffstat (limited to 'pages/tools.swig')
0 files changed, 0 insertions, 0 deletions