Add the error_code returned in an error response to the thrown WePayException so you can use getCode() to easily view the error_code