EACCES while resolving a path | 500 INTERNAL | 403 PERMISSION_DENIED | A permission error is not a server fault, and SDKs retry 500s |
| A symlink loop while resolving a path | 500 INTERNAL | 400 INVALID_ARGUMENT too many levels of symbolic links | The path is at fault, not the server, and SDKs retry 500s |
| Paths that are not valid UTF-8 once percent-decoded | Used as raw bytes | 400 INVALID_ARGUMENT path is not valid UTF-8 | Listings and watch events report such names with U+FFFD in both daemons, so no client can name them anyway; a recursive DELETE of the parent removes them |
Paths longer than PATH_MAX (4096 bytes) | 400 INVALID_ARGUMENT, also when extracting an archive | Accepted when each component fits in 255 bytes and a request path is at most 256 directories deep; archive entries may be deeper | Resolution opens one component at a time, so the kernel limits only components |
Literal . or .. segments in the URL, and /v1/files without the trailing slash | 307 redirect from Go’s router | Cleaned lexically, then the normal rules apply (../ above the root is 403); /v1/files is the root | No redirect for clients that refuse redirects |
| Temporary files during upload | .sandboxd-tmp-* visible in the target directory, and seen by watchers | Unnamed O_TMPFILE, invisible until commit. Falls back to .axe-tmp-* on filesystems without O_TMPFILE; and extract=tar always writes entries through .axe-tmp-* files, which listings show until commit; watchers do not report either | Partial uploads stay invisible and crashes leave no temporary files |
DELETE with an invalid recursive value on a missing path | 404 | 400 | axed validates parameters before it touches the filesystem |
| Malformed request details | A Content-Type of multipart/form-data with a parameter missing its =, or with a space before ;, stores the body as the file. A bad percent-escape such as %zz gets a plain-text 400. max_depth above the largest signed 64-bit integer gets 400 | The first is refused with 400, the second gets a JSON 400, and max_depth is accepted up to 2^64−1 | Each HTTP stack parses malformed input its own way; the status is the same or the request was invalid anyway |
| Path resolution | Resolves symlinks, checks the prefix, then opens the path by name | Resolves one component at a time through held directory descriptors | A symlink swapped in during a request cannot redirect it |
--http-idle-timeout | Closes idle HTTP/1 keep-alive connections. Request headers must arrive within a fixed 10 seconds | Same, and also closes connections stalled mid-transfer and HTTP/2 connections with no request open that receive only keepalive pings. It is also the time allowed for request headers | A stalled or idle client would otherwise hold a connection slot and a file descriptor indefinitely |
| Listing size | Limited by entry count for recursive listings | Also fails with 400 once the returned names add up to more than 32 MiB, and a listing of direct children fails with 400 past 1,048,576 entries in the directory | Names are full relative paths, so a deep tree’s listing grows with depth squared |
| Archive metadata on extract | Go’s archive/tar reads PAX and long-name records up to 1 MiB each | At most 32 KiB of header and metadata records per entry, else 413 | The tar reader holds each record in memory whole |