mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-10-31 01:58:11 +08:00 
			
		
		
		
	maintain (error): add internal error
This commit is contained in:
		| @ -18,15 +18,16 @@ var ( | ||||
| 	ErrNotValid             error = NewError("Not Valid", 405) | ||||
| 	ErrConflict             error = NewError("Already exist", 409) | ||||
| 	ErrNotReachable         error = NewError("Cannot establish a connection", 502) | ||||
| 	ErrInvalidPassword            = NewError("Invalid Password", 403) | ||||
| 	ErrNotImplemented             = NewError("Not Implemented", 501) | ||||
| 	ErrNotSupported               = NewError("Not supported", 501) | ||||
| 	ErrFilesystemError            = NewError("Can't use filesystem", 503) | ||||
| 	ErrMissingDependency          = NewError("Missing dependency", 424) | ||||
| 	ErrNotAuthorized              = NewError("Not authorised", 401) | ||||
| 	ErrAuthenticationFailed       = NewError("Invalid account", 400) | ||||
| 	ErrCongestion                 = NewError("Traffic congestion, try again later", 500) | ||||
| 	ErrTimeout                    = NewError("Timeout", 500) | ||||
| 	ErrInvalidPassword      error = NewError("Invalid Password", 403) | ||||
| 	ErrNotImplemented       error = NewError("Not Implemented", 501) | ||||
| 	ErrNotSupported         error = NewError("Not supported", 501) | ||||
| 	ErrFilesystemError      error = NewError("Can't use filesystem", 503) | ||||
| 	ErrMissingDependency    error = NewError("Missing dependency", 424) | ||||
| 	ErrNotAuthorized        error = NewError("Not authorised", 401) | ||||
| 	ErrAuthenticationFailed error = NewError("Invalid account", 400) | ||||
| 	ErrCongestion           error = NewError("Traffic congestion, try again later", 500) | ||||
| 	ErrTimeout              error = NewError("Timeout", 500) | ||||
| 	ErrInternal             error = NewError("Internal Error", 500) | ||||
| ) | ||||
|  | ||||
| type AppError struct { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Mickael Kerjean
					Mickael Kerjean