Update the flow of error response