def _exc_to_http(param1):
if len(param1) <= <NUM_LIT:3>:<EOL><INDENT>try:<EOL><INDENT>int(param1)<EOL><DEDENT>except BaseException:<EOL><INDENT>logger.error(<EOL>"<STR_LIT>", param1)<EOL><DEDENT>else:<EOL><INDENT>return int(param1)<EOL><DEDENT><DEDENT>exc = param1.split('<STR_LIT:U+0020>')[-<NUM_LIT:1>]<EOL>if exc in KNOWN_EXC.keys():<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>logger.warning("<STR_LIT>", param1)<EOL>return <NUM_LIT:0><EOL><DEDENT>
translate exception str to http code