HH-37909 detect error code for response in exception handler