Status codes provide extra information when a request is made to the MTAPI. The response code will be provided when a request has been successfully completed.
...
Response Headers
{
"cache-control": "no-cache",
"content-length": "123",
"content-type": "application/json; charset=utf-8",
"date": "Tue, 20 Apr 2021 11:28:03 GMT",
"expires": "-1",
"mtapistatus": "-1",
"pragma": "no-cache",
"server": "Microsoft-IIS/8.5",
"x-aspnet-version": "4.0.30319",
"x-powered-by": "ASP.NET"
}
...
Call to check whether user exists or not has failed
UserExistsFailed = 620001Call to check whether user exists or not has failed
UserExistsFailed = 620001Associate internal user to organization failed
AssociateInternalUserToOrganizationFails = 620003Retrieving users has failed
RetrievingUsersFailed = 62000Retrieving user using id has failed
RetrievingUserByIdFailed = 620005Retrieving user using PKI has failed
RetrievingUserByPkiFailed = 620006Retrieving users using email has failed
RetrievingUsersByEmailFailed = 620007Retrieving user using passed credentials has failed
RetrievingUserByAuthInfoFailed = 620008Retrieving request for user has failed
RetrievingRequestsForUserFailed = 620009Adding or updating user information has failed
AddingOrUpdatingUserFailed = 620010Deleting user has failed
DeletingUserFailed = 620011Retrieving organizations information for a user has failed
RetrievingOrganizationsForUserFailed = 620012Retrieving business systems information for a user has failed
RetrievingBusinessSystemsForUserFailed = 620013Retrieving services for a user has failed
RetrievingServicesByUserFailed = 620014Adding permission to service has failed
AddingPermissionToServiceFailed = 620015Deleting service permission has failed
DeletingServicePermissionFailed = 620016Retrieving notices for a user has failed
RetrievingNoticesForUserFailed = 620017Retrieving permissions of a user has failed
RetrievingPermissionsByUserFailed = 620018Retrieving permissions for a user's service has failed
RetrievingPermissionsByUserAndServiceFailed = 620019Searching users has failed
UserSearchFailed = 620019Retrieving granted applications by user id has failed.
RetrievingExpiredNoticesForUserFailed = 620020Adding Or Updating User Failed Because Email Already Taken
AddingOrUpdatingUserFailedBecauseEmailAlreadyTaken = 620021Retrieving granted applications by user id has failed.
GetApplicationsFailed = 620022Retrieving granted applications by user id has failed because of an invalid role id.
GetApplicationsFailedByInvalidRoleId = 620023
Virus Scan Controller (621000-621999)
...
UserApplicationManagement Controller (623000 - 623999)
Note: This only for MTOA Platform team
Get application information with roles failed.
GetApplicationByAppIdFailed = 623000Get application information with roles and permission failed.
ApplicationNotFound = 623001
...
CreatedByUser does not have the role to manage the application user account.
MustHaveRoleToManageUser = 623007Get users by application id failed
GetUsersByApplicationIdFailed = 620338