3xx response range not fulfilled on response

bad if statement