Adds gzip compression, custom status codes for API responses