PelicanPlatform / pelican

The Pelican Platform for creating data federations
https://pelicanplatform.org/
Apache License 2.0
11 stars 24 forks source link

Add html error code in the resulting class ad #1680

Open turetske opened 1 week ago

turetske commented 1 week ago

Pelican Service:- [X] Plugin

Is your feature request related to a problem? Please describe. The HTCSS dev team would like the html error code: (eg 200, 404, 500, etc.) to be put into the resulting class ads rather than just in the error string.

Describe the solution you'd like Add a field into the resultAds for the error codes in int form Parse the error codes from the string and populate the field when the resultAd is created (or use 200 if there is no error).

turetske commented 3 days ago

For more clarification:

When a http transfer fails on the plugin and puts an error string into the ResultsAd, we want to parse out the error code (or get the code from the html response) and add a value to the class ad that records that integer. If no error occurs, than the standard 200 (SUCCESS) is used.