Set correct status code threshold for error