Added first api function, and also created custom exception classes for api request and response errors. Also added unit testing for these functions using pytest