added method to check if default status code matches