Adding appropriate response statuscode support to the API service