Files
threshold/internal/proto/local/controller/api/v1/error.proto
T

30 lines
887 B
Protocol Buffer
Raw Normal View History

2020-05-01 12:38:01 -07:00
syntax = "proto3";
package controller.api.v1;
2020-08-10 17:15:02 -04:00
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/api;api";
2020-05-01 12:38:01 -07:00
message ErrorDetails {
2020-05-26 13:46:21 -07:00
string TraceId = 1 [json_name="TraceId"];
string request_id = 2 [json_name="request_id"];
repeated FieldError request_fields = 3 [json_name="request_fields"];
}
// FieldErrors contains error information on a per field basis.
message FieldError {
string name = 1;
string description= 2;
2020-05-01 12:38:01 -07:00
}
// Error is returned by the JSON API when an error occurs.
message Error {
2020-05-04 10:58:20 -04:00
// The HTTP Status code applicable to this error
2020-05-26 13:46:21 -07:00
int32 status = 1;
2020-05-04 10:58:20 -04:00
// An application-specific error string
2020-05-26 13:46:21 -07:00
string code = 2;
2020-05-04 10:58:20 -04:00
// A human readable explanation specific to this occurrence of the error
2020-05-26 13:46:21 -07:00
string message = 3;
2020-05-04 10:58:20 -04:00
// Additional metadata regarding the error. Depending on the error
// different fields will be populated.
ErrorDetails details = 4;
2020-05-01 12:38:01 -07:00
}