Added client_id into post method. Also changed error response into an object and updated tests