You raise similar exceptions, so I'd suggest creating a custom Exception and taking the method and response as arguments.