#NEWLINE# def abort( status_code , detail = '' , headers = None , comment = None , **kw ) : #NEWLINE# #INDENT# '\n    Raise an HTTP status code, as specified. Useful for returning status\n    codes like 401 Unauthorized or 403 Forbidden.\n\n    :param status_code: The HTTP status code as an integer.\n    :param detail: The message to send along, as a string.\n    :param headers: A dictionary of headers to send along with the response.\n    :param comment: A comment to include in the response.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# ( _ , _ , traceback ) = sys . exc_info ( ) #NEWLINE# webob_exception = exc . status_map [ status_code ] ( detail = detail , headers = headers , comment = comment , ** kw ) #NEWLINE# if six . PY3 : #NEWLINE# #INDENT# raise webob_exception . with_traceback ( traceback ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# exec ( 'raise webob_exception, None, traceback' ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# del traceback