Skip to content

Commit

Permalink
add constant for resource locked error code (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickschaffrath authored Nov 25, 2021
1 parent 41fef2f commit cf8f35d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hcloud/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const (
ErrorCodeMaintenance ErrorCode = "maintenance" // Cannot perform operation due to maintenance
ErrorCodeConflict ErrorCode = "conflict" // The resource has changed during the request, please retry
ErrorCodeRobotUnavailable ErrorCode = "robot_unavailable" // Robot was not available. The caller may retry the operation after a short delay
ErrorUnsupportedError ErrorCode = "unsupported_error" // The gives resource does not support this
ErrorCodeResourceLocked ErrorCode = "resource_locked" // The resource is locked. The caller should contact support
ErrorUnsupportedError ErrorCode = "unsupported_error" // The given resource does not support this

// Server related error codes
ErrorCodeInvalidServerType ErrorCode = "invalid_server_type" // The server type does not fit for the given server or is deprecated
Expand Down

0 comments on commit cf8f35d

Please sign in to comment.