Files
nomad/command
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
..
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2021-10-01 10:14:28 -04:00
2021-10-01 10:14:28 -04:00
2020-12-09 11:05:18 -08:00
2021-10-01 10:14:28 -04:00
2020-10-21 14:05:46 -04:00
2020-10-21 14:05:46 -04:00
2020-10-21 14:05:46 -04: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
2021-10-01 10:14:28 -04:00
2021-10-01 10:14:28 -04:00
2020-12-09 11:05:18 -08:00
2021-05-07 13:58:40 -04:00
2020-11-30 11:12:06 -05:00
2020-12-09 11:05:18 -08: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
2021-10-01 10:14:28 -04:00
2020-12-09 11:05:18 -08:00
2021-10-22 15:43:55 -04:00
2021-04-01 11:16:52 -04:00
2021-03-31 16:37:09 -04:00