Uses correct response code