Skip to content

Error Definitions ​

All SAM API error responses follow a consistent structure. Below is a comprehensive list of all possible error types.

Error Reference ​

Error NameHTTP CodeError CodeDescription
WSInternalException500 - Internal Server Error2000.0An internal error has occurred.
WSUserServiceUnavailableException500 - Internal Server Error2002.0The User Service is currently unavailable!
WSBrochureServiceUnavailableException500 - Internal Server Error2011.0The Brochure Service is currently unavailable!
WSCompanyServiceUnavailableException500 - Internal Server Error2021.0The Company Service is currently unavailable!
WSNoUsernameOrPasswordException400 - Bad Request1001.0Username and Password must be supplied for login.
WSInsufficientPermissionsException401 - Unauthorised1003.0User does not have permissions for this operation.
WSAccountLockedException401 - Unauthorised1004.0This account is currently locked. Please check with your Administrator.
WSAuthenticationFailedException401 - Unauthorised1005.0Failed to authenticate. Please correct login details or press cancel if not registered.
WSUserServiceException500 - Internal Server Error2001.0An unexpected error occured in the User Service.
WSCompanyServiceException500 - Internal Server Error2020.0An unexpected error occured in the Company Service.
WSInvalidAuthTokenException401 - Unauthorised1006.0Invalid or expired authentication token.
WSInvalidParameterException400 - Bad Request1002.0Invalid parameter supplied to service.
WSBrochureServiceException500 - Internal Server Error2010.0An unexpected error occured in the Brochure Service.
WSBrochureVersionNotFoundException400 - Bad Request1007.0Brochure Version not found.
WSUserNotFoundException400 - Bad Request1009.0User not found.
WSEmailAlreadyExistsException400 - Bad Request1010.0Email address already exists.
WSCacheServiceException500 - Internal Server Error2027.0An unexpected error occurred in the Cache Service.
WSCacheServiceUnavailableException500 - Internal Server Error2028.0The Cache Service is currently unavailable!
ADDED FOR MEDICAL INTERACT - April 2013
WSUsernameAlreadyExistsException400 - Bad Request1012.0Username already exists.
WSPasswordLengthException400 - Bad Request1013.0Password must be between 8 and 30 characters!
WSPasswordMismatchException400 - Bad Request1014.0Supplied Password and Confirm Password do not match!
WSInvalidProviderNumberException400 - Bad Request1015.0Invalid Provider Number!
WSHCPValidationException400 - Bad Request1016.0HCP validation failed!
WSPasswordServiceException500 - Internal Server Error2030.0An unexpected error occurred in the Password Service!
WSRefDataServiceException500 - Internal Server Error2040.0An unexpected error occurred in the Reference Data Service!
ADDED FOR Surveys Aug 2013
WSSurveyNotFoundException400 - Bad Request1017.0Survey not found.
WSInvalidSurveyConfigurationException400 - Bad Request1018.0Invalid survey configuration in CMS.
WSSurveyInactiveOrExpiredException410 - Gone1020.0Survey inactive or expired.
WSDuplicateSampleSubmittedException400 - Bad Request1021.0Duplicate Sample Order submitted.
WSSurveyServiceException500 - Internal Server Error2050.0An unexpected error occurred in the Survey Service!
ADDED FOR MY INTERACT Nov 2013
WSInvitationToConnectionNotFoundException400 - Bad Request1019.0Invitation to Connect not found.
WSNotYetRegisteredForMIException401 - Unauthorised1027.0User is not registered for this service.
WSInvalidMIRegistrationRequestException401 - Unauthorised1028.0User does not satisfy registration requirements.
WSInvalidMIRegistrationIdException401 - Unauthorised1029.0This registration is invalid or has already been used.
WSConnectionAlreadyExistsException400 - Bad Request1030.0Connection already exists for User.
WSInvalidTeamException400 - Bad Request1031.0Invalid Team supplied to service.
WSContactExistsException400 - Bad Request1032.0Contact already exists.
WSQRCodeNotFoundException400 - Bad Request1033QR Code not found.
WSQRCodeInactiveOrDeletedException400 - Bad Request1034QR Code is inactive or deleted.
WSQRCodeNotActiveYetException400 - Bad Request1035QR Code is not active yet.
WSQRCodeExpiredException400 - Bad Request1036QR Code has expired.
WSEmailNotValidatedException400 - Bad Request1037Email address not validated. (or custom message depending)
WSUserNotEnabledForMIException401 - Unauthorised1038.0Our records show you are an existing nextINTERACT user. Please register to access myINTERACT.
WSUserNotEnabledForNIException401 - Unauthorised1039.0Our records show you are an existing myINTERACT user. Please contact your nextINTERACT administrator if you wish to l...
WSDuplicateResponseSubmittedException400 - Bad Request1040.0Duplicate Response submitted.
WSInvalidEmailDomainNameException400 - Bad Request1041.0Invalid email domain name.
WSEmailNotFoundException400 - Bad Request1043.0Email address not found.
WSUserInvalidPasswordException400 - Bad Request1044.0Existing password does not match.
WSUnsupportedVersionException400 - Bad Request1048.0The version supplied is not supported.
ADDED FOR Events 2016
WSEventServiceException500 - Internal Server Error2070.0An unexpected error occurred in the Events Service.
WSEventServiceUnavailable500 - Internal Server Error2071.0The Events Service is currently unavailable!
WSEventCancelledException400 - Bad Request1042.0This event has been cancelled.
WSEventAttendeeNotFoundException400 - Bad Request1045.0Event invite not found.
SmartLibrary Exceptions
WSSmartLibraryServiceException500 - Internal Server Error2073.0An unexpected error occurred in the Smart Library Service.
WSMaxFileUploadSizeException400 - Bad Request1051.0Maximum file upload size exceeded.
SmartDirectory Exceptions
WSSmartDirectoryNotFoundException400 - Bad Request1065.0Smart Directory not found.
WSSmartDirectoryServiceException500 - Internal Server Error2080.0An unexpected error occurred in the Smart Directory Service.
WSUserNotConsentedException400 - Bad Request1066.0User not consented.
WSSmartDirectoryNotEnabledForCompanyException400 - Bad Request1067.0Smart Directory not enabled.
WSUserContactNotFoundException400 - Bad Request1068.0User Contact not found.
WSUserNotInSmartDirectoryException400 - Bad Request1069.0User not in Smart Directory.
Miscellaneous
WSFieldLengthException400 - Bad Request1049.0Field length exceeded.
WSLimitExceededException400 - Bad Request1062.0System limit have been exceeded
WSCompanyNotActiveException400 - Bad Request1080.0This company is no longer available, please contact Company representative for further information.
Membership API Exceptions
WSCompanyApiKeyNotActiveException400 - Bad Request1082.0Company API Key not active.
WSConnectionStatusNotActiveException400 - Bad Request1081.0Connection status is not active.
WSIncorrectApiKeyTypeException400 - Bad Request1083.0API Key does not match to api call.
WSMembershipServiceException500 - Internal Server Error2082.0An unexpected error occurred in the Membership Service.
WSUserNotActiveException400 - Bad Request1084.0User status is not active.
WSRecordNotFoundException400 - Bad Request1085.0Record not found.
WSInvalidSystemConfigurationException500 - Internal Server Error1087.0Invalid system configuration encountered.
WSAdminAPIServiceException500 - Internal Server Error2083.0An unexpected error occurred in the Admin API Service.
User Preference Exceptions
WSUserPreferenceServiceException500 - Internal Server Error2084.0An unexpected error occurred in the User Preference Service.
User Notifications Exceptions
WSUserPreferenceServiceException500 - Internal Server Error
SSO Exceptions
WSUserUseFederatedLoginException400 - Bad Request1089.0User is using Single Sign On, please login using alternate login flow.
WSOAuthServiceException500 - Internal Server Error2087.0An unexpected error occurred in the OAuth Service.
WSTaxonomyServiceException500 - Internal Server Error2086.0An unexpected error occurred in the Taxonomy Service.
WSDiscoverableServiceException500 - Internal Server Error2088.0An unexpected error occurred in the Discovery Service.
WSInvalidPasswordResetException400 - Bad Request1093.0Invalid password reset operation. (Could be 1.) Password UUID does not match database; 2.) Password Reset UUID has ex...
WSRecentPasswordResetException400 - Bad Request1094.0A recent password reset has been detected. Please update your password.
SUCCESS
N/A - not an error200 - OKLogin successful.
N/A - not an error200 - OKPassword reset successful.
N/A - not an error200 - OKSkin applied.
N/A - not an error200 - OKDeviceId registered.
N/A - not an error200 - OKConnection updated.
N/A - not an error200 - OKMI User registered.
N/A - not an error200 - OKUser email validated.
N/A - not an error200 - OKMI User invited.
N/A - not an error200 - OKEvent attendance status updated.
N/A - not an error200 - OKEvent invite status updated.
N/A - not an error200 - OKEvent invite sent.
N/A - not an error200 - OKUser password change successful.
OK200 - OKOK

Error Response Format ​

Error responses are returned as JSON with the following structure:

json
{"errorCode":1005,"errorMsg":"Failed to authenticate User with supplied credentials."}