Version: v4
Cursad REST API
Cursad REST API Version 4
❗ Error Codes
Below we present a list of possible error codes that can be returned by the API. The hex code (0x***) will always remain the same. The names however, even though they can also be used to uniquely identify each error, are open to future changes.
| Error Code | Error Name | Description |
|---|---|---|
0x0000 | unknown | Catch-all for unhandled errors |
0x0001 | invalid_request | Malformed request, missing parameters |
0x0002 | validation_failed | Field validation failed |
0x0003 | internal_failure | Unexpected server error |
0x0101 | unauthorized | User not logged in |
0x0201 | user_not_found | User ID not found |
0x0301 | course_not_found | Course ID does not exist |
0x0302 | course_full | Max participants reached |
0x0305 | course_end_date_passed | Can't enroll in past courses |
0x0306 | course_cancelled | Course is no longer available |
0x0351 | course_offer_not_found | Course offer ID does not exist |
0x0401 | already_enrolled | User already enrolled |
0x0402 | enrollment_closed | Enrollments not allowed (time window) |
0x0406 | debtor_underaged | Debtor needs to be at least 18 years old |
0x0407 | debtor_required | Debtor is required when student is not equal to debtor |
0x0408 | debtor_email_address_required | Debtor requires an email address |
Authentication
- API Key: verifyEndpointAccess
- API Key: ClientKey
- HTTP: Bearer Auth
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | Endpoint-Access-Token |
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | X-Client-Key |
Enter 'Bearer {your token}' to authenticate. The Bearer scheme is used to authorize API management endpoints.
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |