Chapter 5. Error Codes

Common Errors

400

"Api method parameters type mismatching.", HttpStatus.BAD_REQUEST

500

"Internal server error.", HttpStatus.INTERNAL_SERVER_ERROR

501

"Api method not implemented yet.", HttpStatus.NOT_IMPLEMENTED

511

"Api server is too busy.", HttpStatus.INTERNAL_SERVER_ERROR

4000

"Authentication gateway error.", HttpStatus.UNAUTHORIZED

4001

"Authentication failed.", HttpStatus.UNAUTHORIZED

4002

"Api key is missing.", HttpStatus.UNAUTHORIZED

Pagination Errors

410

"Pagination parameters have negative or zero value.", HttpStatus.BAD_REQUEST

411

"Page size pagination parameter value is too big.", HttpStatus.BAD_REQUEST

412

"Page number pagination parameter value is out of the range.", HttpStatus.BAD_REQUEST

Method Specific Errors

5001

"Wrong chart type parameter.", HttpStatus.BAD_REQUEST

5002

"Wrong max items parameter.", HttpStatus.BAD_REQUEST

5011

"Artist with the specified id does not exist.", HttpStatus.NOT_FOUND

5012

"Artist with the specified name does not exist.", HttpStatus.NOT_FOUND

5013

"Max top tracks parameter has negative or too big value.", HttpStatus.BAD_REQUEST

5021

"Release with the specified id does not exist.", HttpStatus.NOT_FOUND

5022

"Wrong release type parameter.", HttpStatus.NOT_FOUND

5023

"There are no artist's releases with the specified type.", HttpStatus.NOT_FOUND

5024

"Wrong date period.", HttpStatus.BAD_REQUEST

5025

"No releases added within the specified date period.", HttpStatus.NOT_FOUND

5031

"Genre with the specified id does not exist.", HttpStatus.NOT_FOUND

5032

"Min releases parameter value is lesser than allowed.", HttpStatus.BAD_REQUEST

5033

"Min releases parameter value is greater than allowed.", HttpStatus.BAD_REQUEST

5041

"Unsupported search type parameter.", HttpStatus.BAD_REQUEST

5042

"Max results parameter value is too big.", HttpStatus.BAD_REQUEST

5043

"No search results found.", HttpStatus.NOT_FOUND

5044

"Invalid search query parameters.", HttpStatus.BAD_REQUEST

5051

"Series with the specified id does not exist.", HttpStatus.NOT_FOUND