return http 500 when detecting requests that will loop on return