27 lines
827 B
Protocol Buffer
27 lines
827 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package controller.api.v1;
|
|
|
|
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api;api";
|
|
|
|
import "google/protobuf/wrappers.proto";
|
|
|
|
message ErrorDetails {
|
|
google.protobuf.StringValue trace_id = 1;
|
|
google.protobuf.StringValue request_id = 2;
|
|
repeated string request_fields = 3;
|
|
}
|
|
|
|
// Error is returned by the JSON API when an error occurs.
|
|
message Error {
|
|
// The HTTP Status code applicable to this error
|
|
google.protobuf.Int64Value status = 1;
|
|
// An application-specific error string
|
|
google.protobuf.StringValue code = 2;
|
|
// A human readable explanation specific to this occurrence of the error
|
|
google.protobuf.StringValue message = 3;
|
|
// Additional metadata regarding the error. Depending on the error
|
|
// different fields will be populated.
|
|
ErrorDetails details = 4;
|
|
}
|