API: clean up error codes
commitd3856637cf1c8c054f0b89e003bfed5bff1b60f9
authorAndreas Gohr <andi@splitbrain.org>
Fri, 5 Jan 2024 14:51:59 +0000 (5 15:51 +0100)
committerAndreas Gohr <andi@splitbrain.org>
Sun, 7 Jan 2024 12:41:19 +0000 (7 13:41 +0100)
treeb77d356bee037eb48356ed18176794fa6af80722
parent902647e630bb637c62651241b186d7b5d5d810e2
API: clean up error codes

Error codes are now extracted from API core and printed on the OpenAPI
overview page. This makes it easier to see what is in use.

Error messages have been cleaned up, some new codes have been assigned.

Some errors have been removed. Eg. it is fine to iterate a media
namespace you don't have read access to. The result will either be empty
or contain files from lower namespaces that you *do* have access to.
inc/Remote/ApiCore.php
inc/Remote/OpenApiDoc/OpenAPIGenerator.php
lib/exe/openapi.php