Revert "Add generic 412 http response handler to ask for dashboard refresh"
This reverts commit 11a6cf8236.
It's unclear in what situations a 412 handler that refreshes the dashboard will help.
We use BoxError.INVALID_CREDENTIALS to be 412.
* Used as internal error code for failed password, app password and totp check
* When password is wrong in external ldap syncing
* appstore token is invalid
In all cases, a dashboard refresh will do nothing afaict. For good measure, I have
converted appstore token case into LICENSE_ERROR which is a 402.
This commit is contained in:
@@ -54,7 +54,7 @@ BoxError.FEATURE_DISABLED = 'Feature Disabled';
|
||||
BoxError.FS_ERROR = 'FileSystem Error';
|
||||
BoxError.INACTIVE = 'Inactive'; // service/volume/mount
|
||||
BoxError.INTERNAL_ERROR = 'Internal Error';
|
||||
BoxError.INVALID_CREDENTIALS = 'Invalid Credentials';
|
||||
BoxError.INVALID_CREDENTIALS = 'Invalid Credentials'; // routes that take totp/password for further verification
|
||||
BoxError.IPTABLES_ERROR = 'IPTables Error';
|
||||
BoxError.LICENSE_ERROR = 'License Error'; // billing or subscription expired
|
||||
BoxError.LOGROTATE_ERROR = 'Logrotate Error';
|
||||
|
||||
Reference in New Issue
Block a user