Can you modify this library to return the whole response object instead of just the data key of the response (on line 128 of phpCriclib.php)?
This way users can access the etag (to enable etag based caching which ultimately saves your bandwidth and allows users to optimize their platform) and status codes (to re-pull in case of non 200 response code)