WooCommerce Code Reference

WC_REST_WCCOM_Site_Installer_Errors
in package

WCCOM Site Installer Errors Class

Stores data for errors, returned by installer API.

Table of Contents

INVALID_TOKEN_CODE  = 'invalid_token'
Provided access token is not valid
INVALID_TOKEN_HTTP_CODE  = 401
INVALID_TOKEN_MESSAGE  = 'Invalid access token provided'
NO_ACCESS_TOKEN_CODE  = 'no_access_token'
No access token provided
NO_ACCESS_TOKEN_HTTP_CODE  = 400
NO_ACCESS_TOKEN_MESSAGE  = 'No access token provided'
NO_PERMISSION_CODE  = 'forbidden'
No permissions error
NO_PERMISSION_HTTP_CODE  = 403
NO_PERMISSION_MESSAGE  = 'You do not have permission to install plugin or theme'
NO_SIGNATURE_CODE  = 'no_signature'
No signature provided
NO_SIGNATURE_HTTP_CODE  = 400
NO_SIGNATURE_MESSAGE  = 'No signature provided'
NOT_AUTHENTICATED_CODE  = 'not_authenticated'
Not unauthenticated generic error
NOT_AUTHENTICATED_HTTP_CODE  = 401
NOT_AUTHENTICATED_MESSAGE  = 'Authentication required'
REQUEST_VERIFICATION_FAILED_CODE  = 'request_verification_failed'
Request verification by provided signature failed
REQUEST_VERIFICATION_FAILED_HTTP_CODE  = 400
REQUEST_VERIFICATION_FAILED_MESSAGE  = 'Request verification by signature failed'
SITE_NOT_CONNECTED_CODE  = 'site_not_connnected'
Site not connected to WooCommerce.com
SITE_NOT_CONNECTED_HTTP_CODE  = 401
SITE_NOT_CONNECTED_MESSAGE  = 'Site not connected to WooCommerce.com'
USER_NOT_FOUND_CODE  = 'user_not_found'
User doesn't exist
USER_NOT_FOUND_HTTP_CODE  = 401
USER_NOT_FOUND_MESSAGE  = 'Token owning user not found'

Constants