Using Vansah APIUsing Vansah's API for Jira
Introduction
Overview
The API signals errors via standard HTTP status codes. This means that successful responses use a 2xx status code, whereas errors are reported with different error codes to help you handle exceptions correctly.
It is important you support different errors to ensure your automation testing can continue to run.
# 10XX : Main App Errors
'1000': 'App Server Error, please contact the admin' # Global Error
'1001': 'Missing Headers'
'1002': 'Missing Parameters'
'1003': 'Invalid offset or limit'
'1004': 'Invalid Locale'
'1005': 'Invalid Timezone'
'1006': 'You exceeded the limit of requests per minute, Please try again later.'
'1007': 'Invalid email registration address used.'
# 11XX : HTTP Errors
'1101': 'Unauthorized'
'1102': 'Not authorized to access'
'1103': 'Un-processable Entity'
'1104': 'Authentication Failed'
'1105': 'Not Found'
# 12XX : Auth Errors
'1201': 'Your session is expired, please login again' # Token expired
'1202': 'Your sessions is invalid' # verification error
'1203': 'Your sessions is invalid' # Error encountered while decoding token
'1204': 'Your sessions token is invalid' # Invalid token
'1205': 'You are Unauthorized, Please login' # You are Unauthorized, Please login
'1206': 'Authentication Error, User Not found' # Authentication Error, User Not found
'1207': 'User token not authorized for workspace"
# 13XX : Session Errors
'1301': 'Invalid Credentials'
'1302': 'Invalid Login Type'
'1303': 'Invalid Social Type'
'1304': 'Login Error'
'1305': 'You Account is disabled by the admin.'
'1306': 'Invalid details.'
'1307': 'Wrong confirmation code! Try again.'
'1308': 'Invalid email or password'
'1309': 'Duplicate data found.'
'1310': 'Your request is invalid.'
'1311': 'You are not authorized to access this app'
'1312': 'Email link has been expired'
'1313': 'Your account is not activated'
'1314': 'No available project(s)'
# 4XX : Client Errors
'400': 'POST is not properly formatted'
'401': 'Authentication failed '
'403': 'Access denied '
'404': 'The API endpoint does not exist'
# 5XX: Server Errors
'500': 'Server timeout'