<s> """<STR_LIT>""" <EOL> from flask_restplus . errors import abort as restplus_abort <EOL> from werkzeug . exceptions import Unauthorized , Forbidden , NotFound , Conflict , UnprocessableEntity <EOL> API_DEFAULT_HTTP_CODE_MESSAGES = { <EOL> Unauthorized . code : ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> ) , <EOL> Forbidden . code : ( <EOL> "<STR_LIT>" <EOL> ) , <EOL> NotFound . code : NotFound . description , <EOL> Conflict . code : Conflict . description , <EOL> UnprocessableEntity . code : UnprocessableEntity . description , <EOL> } <EOL> def abort ( code , message = None , ** kwargs ) : <EOL> if message is None : <EOL> message = API_DEFAULT_HTTP_CODE_MESSAGES . get ( code ) <EOL> restplus_abort ( code = code , status = code , message = message ) </s>
