Files
nomad/command/agent
Tim Gross 55c29fbf50 api: return 404 for alloc FS list/stat endpoints (#11482)
* api: return 404 for alloc FS list/stat endpoints

If the alloc filesystem doesn't have a file requested by the List
Files or Stat File API, we currently return a HTTP 500 error with the
expected "file not found" error message. Return a HTTP 404 error
instead.

* update FS Handler

Previously the FS handler would interpret a 500 status as a 404
in the adapter layer by checking if the response body contained
the text  or is the response status
was 500 and then throw an error code for 404.

Co-authored-by: Jai Bhagat <jaybhagat841@gmail.com>
2021-11-17 11:15:07 -05:00
..
2021-10-01 10:14:28 -04:00
2021-10-01 10:14:28 -04:00
2021-10-01 10:14:28 -04:00
2018-10-16 16:56:55 -07:00
2021-10-01 10:14:28 -04:00
2017-07-20 09:36:34 -07:00
2021-10-01 10:14:28 -04:00
2021-05-07 13:58:40 -04:00
2021-10-01 10:14:28 -04:00
2017-07-20 09:36:34 -07:00
2018-09-13 10:43:40 -07:00
2018-09-13 10:43:40 -07:00
2018-02-15 13:59:02 -08:00
2017-07-20 09:36:34 -07:00
2015-09-06 18:39:03 -07:00
2021-10-01 10:14:28 -04:00
2019-01-22 15:44:31 -08:00
2019-01-22 15:44:31 -08:00
2017-07-20 09:36:34 -07:00
2021-10-01 10:14:28 -04:00