Upsource API Documentation Index

Enums

View as JSON

E RPCErrors

RPC status codes. The corresponding HTTP status code is sent along.
NameNumberDescription
OK 0
Equivalent to 200 OK
Unknown 1
Equivalent to 500 Internal Server Error
InvalidRequest 100
Equivalent to 400 Bad Request
AuthenticationError 101
Equivalent to 401 Unauthorized
AccessDenied 102
Equivalent to 401 Unauthorized
SecurityTokenExpired 103
Equivalent to 401 Unauthorized (more precisely, to the non-standard 419 Authentication Timeout)
SecurityTokenRequired 104
Equivalent to 401 Unauthorized
RequestRejected 105
Equivalent to 403 Forbidden
NotFound 106
Equivalent to 404 Not Found
MethodNotSupported 107
Equivalent to 405 Method Not Supported
InternalError 108
Equivalent to 500 Internal Server Error
TaskCancelled 109
Equivalent to 204 No Content
ServerReadOnly 110
Equivalent to 503 Service Unavailable
NotSupportedInProduction 1000
Feature is only supported in development mode
UpsourceException 1001
Application-level exception
FileNotFoundInRevision 1002
The requested file was not found (application-specific version of 404 Not Found)
RevisionNotIndexed 1003
The requested revision is not indexed
UpsourceNotReadyException 2001
The requested data is not yet available, check back later
FileIsTooBig 2002
File is too big to be displayed (downloading is possible)