I am not sure this is quite right. IMO it was intentional to return a response even in case of failure. With your change the TS_RESP_CTX_set_status_info_cond() call is useless and also IMO the response status might indicate some other details about the failure.