Status code check for handlers