Responses

Some basics about the responses you can expect from our upload server.

Our upload server will return a wide variety of responses based on the provided headers and parameters for the request. for example if you provide a invalid secret the server will respond with a invalid secret message.

NOTE

ShareX may throw errors that have nothing to do with a failure in our upload server, these errors will not be listed on this page and if you get one or any error at all you can join our Discord Server for support.


Expected responses

Any of the errors listed below, will provide some details as to what is wrong and possibly even a link to join our discord server for support.

PropTypeDefault
200
STRING
OK
400
STRING
-
401
STRING
-
403
STRING
-
500
STRING
-

400 Responses

status: '[MISSING_SECRET]',
message: 'secret is missing from the request headers',
support: 'https://cordx.lol/discord'
status: '[MISSING_USERID]',
message: 'userid is missing from the request headers',
support: 'https://cordx.lol/discord'
status: '[NO_POST_DATA]',
message: 'no file was provided',
support: 'https://cordx.lol/discord'
status: '[FILE_TOO_LARGE]',
message: 'file size is too large, max file size is 500 MB',
support: 'https://cordx.lol/discord'

401 Responses

status: 'MISSING_USER',
message: 'unable to find a user with the provided secret and userid',
support: 'https://cordx.lol/discord'
status: '[INVALID_SECRET]',
message: 'the provided secret is invalid',
support: 'https://cordx.lol/discord'

403 Responses

status: '[BANNED_USER]',
message: 'you are banned from using the CordX Upload Service',
support: 'https://cordx.lol/discord'
status: '[UNVERIFIED_DOMAIN]',
message: 'this domain is not verified with CordX',
support: 'https://cordx.lol/discord'
status: '[UNAUTHORIZED_USER]',
message: 'this subdomain is limited to the cordx development team',
support: 'https://cordx.lol/discord'

500 Responses

status: '[UPLOAD_FAILED]',
errormsg: 'client aborted the request'
status: '[UPLOAD_FAILED]',
errormsg: `error parsing file: **more details will be provided here in the actual error message**`
status: '[UPLOAD_ERROR]',
message: 'An error occurred while processing the file',
error: **more details will be provided here in the actual error message**
status: '[UPLOAD_FAILED]',
message: 'failed to insert image into database',
error: **more details will be provided here in the actual error message**
status: '[UPLOAD_FAILED]',
message: 'failed to create image record in database',
error: **more details will be provided here in the actual error message**
status: '[CORDX_BUCKET_ERROR]',
message: 'failed to upload image to the cordx bucket',
errormsg: **more details will be provided here in the actual error message**

Last updated on