Modified the code for the Invalid request.