#NEWLINE# def _compose_error_response( self , req , resp , error ) : #NEWLINE# #INDENT# 'Composes a response for the given HTTPError instance.' #NEWLINE# resp . status = resp . status #NEWLINE# if ( error . headers is not None ) : #NEWLINE# #INDENT# resp . set_headers ( error . headers ) #NEWLINE# #UNINDENT# if error . has_representation : #NEWLINE# #INDENT# self . _serialize_error ( req , resp , error )