PelicanPlatform / xrdcl-pelican

A Pelican platform-based plugin for the XrdCl interface
Apache License 2.0
1 stars 3 forks source link

Provide an error code on metadata lookup failure #8

Closed bbockelm closed 2 weeks ago

bbockelm commented 1 month ago

This provides an error code to prevent XRootD from inserting a nonsensical one.

With this code - and a future patch to XRootD - the cache will produce a "502 Bad Gateway" HTTP status on failure to determine an origin or an offline origin. This will allow much-improved error messages in the Pelican client compared to today's generic "500 Internal Server Error".