original_docstring: Return JSON error pages, not HTML!
  
         Using a method suggested in http://flask.pocoo.org/snippets/83/, convert
         all outgoing errors into JSON format.
      
docstring: Return JSON error pages, not HTML.
docstring_tokens: Return JSON error pages not HTML .
code: def _make_json_error(ex):
      """Return JSON error pages, not HTML!
  
         Using a method suggested in http://flask.pocoo.org/snippets/83/, convert
         all outgoing errors into JSON format.
      """
      status_code = ex.code if isinstance(ex, HTTPException) else 500
      response = jsonify(message=str(ex), code=status_code, error=type(ex).__name__)
      response.status_code = status_code
      return response
code_tokens: def _make_json_error ( ex ) : status_code = ex . code if isinstance ( ex , HTTPException ) else 500 response = jsonify ( message = str ( ex ) , code = status_code , error = type ( ex ) . __name__ ) response . status_code = status_code return response
short_docstring: Return JSON error pages, not HTML!
short_docstring_tokens: Return JSON error pages not HTML!
comment: """Return JSON error pages, not HTML!
  
         Using a method suggested in http://flask.pocoo.org/snippets/83/, convert
         all outgoing errors into JSON format.
      """