The following are the examples of HTTP status codes including errors that API can generate
The object with property "ShareUrl"
The shared link to the object has been retrieved successfully.
400 Bad Request
Share url link is not enable for this team
The option 'Public links' is switched off in Team settings.
Access to the object is denied.
404 Not Found
Object not found
The Object Key that was specified doesn't exists.
405 Method Not Allowed
Share url link is not allowed for this object