StatusCode Enumeration

A list of all status and error codes either caused by human mistakes or by technical issues.

Definition

Namespace: MobileTrack.Common.Enums
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public enum StatusCode

Remarks

All HTTP Status codes have values underneath 1_000.
All human errors have values between 1_000 and 10_000.
All technical errors have values above 20_000.

Members

None0 No Status Code is applied. This is not an acceptable value.
Continue100 HTTP 100 status: Useful to alert the client for large data bodies that need to be streamed to the server, and that the call isn't finished.
This will most likely be used for streaming (live) video and/or audio data.
Ok200 HTTP 200 status: Ok represents that the status is good; mostly used for successful validator checks.
NoContent204 HTTP 204 status: No content is returned, but the call is Ok (for Api/Web calls)
Partial206 HTTP 206 status: Meaning more data will come next
InvalidRequest400 HTTP 400 status: Invalid request was send (for Api/Web calls)
Unauthorized401 HTTP 401 status: Will be returned if a logged-in user tries to access items they don't have access to.
By default, all unauthorized access attempts will be logged.
Unpaid402 Throws an error if a user tries to access a resource they have not paid for.
Forbidden403 HTTP 403 status: Returned if a user tries to retrieve a material they will never have access to.
By default, all unauthorized access attempts will be logged.
NotFound404 HTTP 404 status: If a user is not logged in, all pages will return 404, not 401!
All hacking attempts consequently also need to return an empty 404.
NotAcceptable406 HTTP 406 status: useful for third party developers, in case they send the wrong request headers.
Conflict409 HTTP 409 status: Whenever a call conflicts with an existing resource; e.g., trying to upload a file that already exists.
Gone410 HTTP 410 status; requested content has been deleted from the server. Also to be used internally as status code if we are trying to access data that has been deleted.
PayloadTooLarge413 HTTP 413 status: in case a third party developer sends an insanely large request body
TechnicalError500 HTTP 500 status: In case in the backend a crash occurs.
Any and all occurrences of a 500 error are reason for a ticket: user-caused issues should be caught properly.
Maintenance503 HTTP 503 status indicates that the server is currently unavailable (because it is overloaded or down for maintenance).
For MobileTrack, this will ONLY be used for maintenance. In other cases a 500 error should be returned.
Include a timestamp in the payload when maintenance is expected to be finished.
IdNotFilledIn1,000Id Field was not filled in
LabelNotFilledIn1,001Label Field was not filled in
I18NKeyNotFilledIn1,002 Localization Key was not filled in
CreatedByInvalid1,005CreatedBy field has an invalid value
ModifiedByInvalid1,006LastModifiedBy by has an invalid value
EmailNotFilledIn1,007EmailAddress was not filled in
EmailIsInvalid1,008EmailAddress contains an invalid value
CompanyIdFieldNotFilledIn1,009 The CompanyDto's Id Field was not filled in
PhoneNumberNotFilledIn1,010PhoneNumber Field was not filled in
PhoneNumberIsInvalid1,011PhoneNumber contains an invalid value
AddressFieldNotFilledIn1,012IHasPhysicalAddress properties were not filled in
AddressFieldIsInvalid1,013IHasPhysicalAddress properties contain an invalid value
LocaleNotSet1,014 Localization was not set
LocaleIsIncorrect1,015 Localization key is invalid
PayloadNotSet1,016 Payload (for ApiResult models) was left empty
InvalidDateTime1,017DateTime field contained an invalid value
LatitudeNotFilledIn1,018Latitude field for Gps Fix was left empty.
If no Latitude/Longitude value was given, leave the entire Gps fix empty!
LongitudeNotFilledIn1,019Longitude field for Gps Fix was left empty.
If no Latitude/Longitude value was given, leave the entire Gps fix empty!
DomainReferenceNotFilledIn1,021 Domain Reference Field was left empty
LatitudeOutOfRange1,022Latitude field for GPS fix has an invalid value. Valid latitudes are expressed as an angle that ranges from -90 to +90 degrees.
LongitudeOutOfRange1,023Longitude field for GPS fix has an invalid value. Valid longitudes are expressed as an angle that must be 0 or greater, and less than 360 degrees.
FileContentTypesNotFilledIn1,024 File Content Type was not set
FileByteArrayEmpty1,025 File Byte Array was left empty
FileSizeNotEqualToByteArraySize1,026 Byte Array size was not equal to promised File Size Field!
ValueCannotBeLessThanZero1,027 This int / float value cannot be less than zero.
HeadingMustBeBetweenZeroAndThreeSixty1,028 A Heading must be between 0 and 359.99999
CommentTooLarge1,030 Entered comment/remarks was too large
LifeSpanIdNotFilledIn1,031 The LifeSpanId was not filled in!
DeviceIdNotFilledIn1,032 Device ID Field not filled in
ImeiNotFilledIn1,033Imei Field not filled in
TextContainsSpecialCharacters1,034 Text cannot contain special characters!
TextStartsOrEndsWithWhiteSpace1,035 Text cannot start or end with whitespace. Trim() them first!
CountryCodeNotFilledIn1,036 Country Code (Alpha2) was not filled in
CountryCodeIsInvalid1,037 Entered Country Code (Alpha2) was of an invalid value
FirstNameNotFilledIn1,038 First name field (usually for accounts) was not filled in
FirstNameInvalid1,039 Entered FirstName field was of an invalid value
LastNameNotFilledIn1,040LastName field (usually for accounts) was not filled in
LastNameInvalid1,041 Entered LastName field was of an invalid value
ItemLacksAssignedEnvironment1,042 Item has no main environment assigned to it
TextTooShort1,043 The entered string by the user has too few characters assigned to it.
ApiKeyIsEmpty1,044Key in token object is left empty
MapMarkerLabelIsEmpty1,045MapMarkerDto label is left empty.
ApiMessageNotFilledIn1,046 Api status message is left empty
AccountFieldNotFilledIn1,047AccountId in item is left empty
DeviceTypeNotFilledIn1,048 Device Type field in item is left empty
GpsLocationIsInvalid1,049GeoLocation is invalid.
ImeiCodeAlreadyUsed1,050Imei Code already used previously
TextContainsDigits1,051 Text contains digits where this is not allowed.
NullableColorCannotBeTransparent1,052 If a Color is Nullable, then it cannot be transparent.
Then it should just be
CreatedAtInvalid1,053CreatedAt field has an invalid value
LastModifiedAtInvalid1,054LastModifiedAt field has an invalid value
DependentOnNotFilledIn1,055DependentOn can be if not filled in, but not Empty.
ColorNotFilledIn1,056 A field requiring a Color (or String hex, Bootstrap icon color, etc.) was not filled in.
PortTypeNotFilledIn1,057 A property of type ActionFlowPortType was not filled in.
ParameterTypeNotFilledIn1,058 A property of type ParameterType was not filled in.
PortIdNotFilledIn1,059 A reference to a PortDto was not filled in.
EventTypeNotFilledIn1,060 A property of type EventType was not filled in
IconNotFilledIn1,061 Icon field not filled in. (usually a representation of a Bootstrap IconName)
NodeTypeNotFilledIn1,062 A property of type ActionFlowNodeType was not filled in
ActionFlowIdNotFilledIn1,063 A reference to an ActionFlowDefinitionDto was not filled in.
EmailAlreadyUsed1,064 Thrown if another account, regardless of CompanyDto, has the same email address.
ItemIsLocked1,065 The user is trying to perform an action which isn't allowed because the item is in a locked state. For example: adding a AccountDto to a locked CompanyDto or EnvironmentDto
ParameterNoLongerExists1,066 Invoked when a AlertRuleDto has a parameter in use that has since been deleted from the ActionFlowDefinitionDto.
ImageStringNotFilledIn1,067 Image string is empty
LanguageCodeNotFilledIn1,068 Language code is empty
ImeiInvalid1,069 IMEI code is invalid
MapMarkerNotFilledIn1,070Id reference not filled in.
MacAddressInvalid1,071 MAC address is invalid
AlertRuleNotFilledIn1,072Id reference not filled in.
CompanyNotFilledIn1,073CompanyId reference not filled in.
ListOfDeviceIsEmpty1,074DeviceIds reference not filled in.
ListOfEventIsEmpty1,075Events reference not filled in.
AlertTypeNotFilledIn1,076AlertTypeId reference not filled in.
TriggerDelayOutOfRange1,077TriggerDelayInSeconds reference not filled in.
ConnectorTypeNotFilledIn1,078ConnectorType reference not filled in.
ConnectorConfigNotFilledIn1,079Configuration reference not filled in.
ClientCertificateNotFilledIn1,080ClientCertificate reference not filled in.
ClientCertificatePasswordNotFilledIn1,081ClientCertificatePassword reference not filled in.
UserNameNotFilledIn1,082UserName reference not filled in.
AlertConfigPasswordNotFilledIn1,083Password reference not filled in.
SecretNotFilledIn1,084Secret reference not filled in.
CustomParametersNotFilledIn1,085CustomParameters reference not filled in.
CustomEventMappingNotFilledIn1,086CustomEventMapping reference not filled in.
EndpointNotFilledIn1,087Endpoint reference not filled in.
LastSequenceNumberNotFilledIn1,088LastSequenceNumber reference not filled in.
DeviceMessageNotFilledIn1,089DeviceMessageId reference not filled in.
DeliveredAtNotFilledIn1,090DeliveredAt reference not filled in.
CompletedAtNotFilledIn1,091CompletedAt reference not filled in.
LastUpdatedNotFilledIn1,092LastUpdated reference not filled in.
PayloadNotFilledIn1,093MessageSent reference not filled in.
MacAddressAlreadyUsed1,094 If a MacAddress is already in use by another device, this error will be thrown.
HttpStatusCodeNotFilledIn1,095HttpStatusCode reference not filled in.
AlternativeConnectionStringAlreadyUsed1,096 If an alternative connection string is already used by another DeviceDto, this error will be thrown.
ConnectionIdNotFilledIn1,097 If a connection ID of a DevicePayloadDto is not filled in, this error will be thrown.
BatteryLevelOutOfRange1,098 If a battery level of a DevicePayloadDto not found, this error will be thrown.
XmlInvalid1,100 XML content is invalid or malformed.
UpdateIrrelevant1,200 Updating this object is irrelevant; they are exactly the same.
UpdateNotAllowed1,201 Certain fields or items cannot be updated
DeleteNotAllowed1,202 Cannot delete this object
StatusNotSet1,203 Thrown if an object that is required to have a StatusCode doesn't have one assigned.
InvalidDeletionThreshold1,204 Thrown if a ItemsDeletionThresholdInDays is higher than SoftDeletedItemsDaysUntilPermanent or 365 days.
AccountNotFoundOrNoRightsToView1,500AccountDto not found (or you do not own this object or have the permissions to view it)
EnvironmentNotFoundOrNoRightsToView1,501EnvironmentDto not found (or you do not own this object or have the permissions to view it)
DeviceNotFoundOrNoRightsToView1,502DeviceDto not found (or you do not own this object or have the permissions to view it)
MapMarkerNotFoundOrNoRightsToView1,503MapMarkerDto not found (or you do not own this object or have the permissions to view it)
EnvironmentIsRecursive1,504 The user is trying to assign a parent environment to an environment that is already a child of the current environment.
KmlLacksPlacemarks1,550 No Placemarks were provided in the submitted KML file
KmlNonExistingStyleReferenced1,551 A style was requested that does not exist
ImageWidthTooSmall1,600 Image Width is too small (under 16 pixels)
ImageHeightTooSmall1,601 Image Height is too small (under 16 pixels)
ImageTypeNotSupported1,602 Image type is not supported.
PasswordNotFilledIn1,700 User didn't fill in the Password field
EncryptedPasswordLengthWrong1,701EncryptedPasswordDto length was not of the required precise length
SaltLengthWrong1,702 Entered Salt Length for Encrypted Password was of an incorrect length
PasswordMustContainLowercase1,703Password must contain a lowercase character!
PasswordMustContainUppercase1,704Password must contain an uppercase character!
PasswordMustContainDigit1,705Password must contain a digit!
PasswordMustContainSpecialCharacter1,706Password must contain a special character!
PasswordInvalidSize1,707Password must contain a special character!
CultureLeftEmpty1,800CultureInfo field is left empty
IconEmptyGuid1,802 Icon field is not , but contains Empty.
LogoEmptyGuid1,803 Logo field is not , but contains Empty.
OnlyOneInput1,804 When the user filled in multiple inputs fields, but only one was expected.
DateNotFilledIn1,900 A DateTime value was not filled in.
LogCauseInvalid2,000 The Cause property value wasn't the permitted 0, 1 or 2 values.
MapMarkerLacksPoints2,100 A MapMarkerDto's Points must be if there are no points, not an empty list.
IpAddressNotFilledIn2,200 A IpAddressStatusDto's Label property was not filled in
IpAddressLocationNotFilledIn2,201 A IpAddressStatusDto's LocationName property was not filled in
RoleLacksPermissions2,300 Thrown if a RoleDto is created without permissions while also not being a superuser.
RoleAssignmentNotFilledIn2,301 Thrown is a RoleId is not filled in
ItemBelongsToAnotherCompany2,302 Thrown if an item is assigned to a CompanyDto and a company-agnostic object or object belonging to another company is trying to access it.
CompanyAgnosticItemTriesToAccessCompanyItem2,303 Thrown if a company-agnostic object is trying to access a company-specific object. For example; if a ActionFlowDefinitionDto's parameter is trying to access a DeviceDto as its default value.
ShouldOnlyContainDigits2,304 The string should only contain digits.
InvalidLength2,305 The string has an invalid Length
SimCardInvalid2,306 Invalid SimCardNumber input.

See Also