jsont error-detail

This commit is contained in:
Swrup 2025-10-01 17:26:50 +02:00
parent 5eb54fa81b
commit 0325cd9167
3 changed files with 25 additions and 8 deletions

View file

@ -13,13 +13,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. *)
(* TODO ??: GANA error codes
https://git.gnunet.org/gana.git/tree/gnu-taler-error-codes/registry.rec *)
(* https://docs.taler.net/core/api-common.html#tsref-type-ErrorDetail *)
let error_detail ?hint status =
let _ = (hint, status) in
"{}"
let error_detail ?hint _status =
let open Types.ErrorDetail in
let code = -1 in
let s = to_string (make code hint) in
s
module Respond_with = struct
open Vif.Response