updated api response codes
updated api documentation