Status codes

The FSP (File system provider) API uses standard HTTP status codes to manage success and error responses. Status codes include:

Action On success On error On failure
List directory 200 OK 503 Service Unavailable 401 Unauthorized, 404 Not Found
Create directory 201 Created 503 Service Unavailable 401 Unauthorized, 403 Forbidden (parent is RO or non-existant; new dir already exists)
Delete directory 200 OK 503 Service Unavailable 401 Unauthorized, 403 Forbidden (if parent is RO), 404 Not Found
Get file metadata 200 OK 503 Service Unavailable 401 Unauthorized, 404 Not Found
Upload file 201 Created 503 Service Unavailable 401 Unauthorized, 403 Forbidden (if parent is RO or non-existant)
Delete file 200 OK 503 Service Unavailable 401 Unauthorized, 403 Forbidden (if parent is RO), 404 Not Found

 

Next: Generating and displaying thumbnails

Have more questions? Submit a request

Comments