Files
nomad/nomad
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-05-07 13:58:40 -04:00
2021-10-01 10:14:28 -04:00
2020-02-16 16:04:59 -06:00
2021-04-01 11:16:52 -04:00
2018-09-15 16:23:13 -07: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
2021-10-01 10:14:28 -04:00
2019-01-22 15:44:31 -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
2020-07-20 09:25:09 -04:00
2021-10-01 10:14:28 -04:00
2019-01-22 15:44:31 -08:00
2018-02-15 13:59:00 -08:00
2018-09-15 16:23:13 -07:00
2021-08-27 10:37:30 -04:00
2021-10-01 10:14:28 -04:00
2021-01-04 09:00:40 -05:00
2021-10-01 10:14:28 -04:00
2018-09-15 16:23:13 -07:00
2021-10-01 10:14:28 -04:00
2020-02-13 18:56:53 -05:00