Resource Not Found
Status code 404 Not Found
Description The requested resource cannot be found. The detail property reveals additional information about why the resource was not found.
Either the resource path isn’t specified in the API’s OpenAPI description.
GET /enterprises
HTTP/1.1 404 Not Found
Content-Type: application/problem+json
{
"type": "urn:problem-type:belgif:resourceNotFound",
"href": "https://www.belgif.be/specification/rest/api-guide/problems/resourceNotFound.html",
"status": 404,
"title": "Resource Not Found",
"detail": "No resource /enterprises found"
}
Either a path parameter or an optional child resource path doesn’t resolve to an existing resource. Look for more details in the issues property.
GET /enterprises/0206731645/employees/12345678901
HTTP/1.1 404 Not Found
Content-Type: application/problem+json
{
"type": "urn:problem-type:belgif:resourceNotFound",
"href": "https://www.belgif.be/specification/rest/api-guide/problems/resourceNotFound.html",
"status": 404,
"title": "Resource not found",
"detail": "No resource /enterprises/0206731645 found",
"issues": [
{
"in": "path",
"name": "enterpriseNumber",
"detail": "The enterprise number 0206731645 is not assigned",
"value": "0206731645"
}
]
}
GET /enterprises/0206731645/employees/12345678901
HTTP/1.1 404 Not Found
Content-Type: application/problem+json
{
"type": "urn:problem-type:belgif:resourceNotFound",
"href": "https://www.belgif.be/specification/rest/api-guide/problems/resourceNotFound.html",
"status": 404,
"title": "Resource not found",
"detail": "No resource /enterprises/0206731645/employees/12345678901 found",
"issues": [
{
"in": "path",
"name": "employeeSsin",
"detail": "Employee with SSIN 12345678901 of enterprise 0206731645 does not exist",
"value": "12345678901"
}
]
}
GET /enterprises/0206731645/employees/12345678901/profilePicture
HTTP/1.1 404 Not Found
Content-Type: application/problem+json
{
"type": "urn:problem-type:belgif:resourceNotFound",
"href": "https://www.belgif.be/specification/rest/api-guide/problems/resourceNotFound.html",
"status": 404,
"title": "Resource not found",
"detail": "No resource /enterprises/0206731645/employees/12345678901/profilePicture found",
"issues": [
{
"in": "path",
"name": "profilePicture",
"detail": "Employee 12345678901 of enterpise 0206731645 does not have a profile picture"
}
]
}
The InputValidationProblem Schema Object SHOULD be used to represent this type of problem.
Note that this problem type is only used when the resource path cannot be resolved. For resources referenced otherwise (i.e. request body, header or query parameter), Bad Request is returned with a urn:problem-type:belgif:input-validation:referencedResourceNotFound issue type.