Skip to content

Instantly share code, notes, and snippets.

@TharmiganK
Created July 28, 2023 04:53
Show Gist options
  • Save TharmiganK/0534b12bdf99decc6213e500e3fa87ef to your computer and use it in GitHub Desktop.
Save TharmiganK/0534b12bdf99decc6213e500e3fa87ef to your computer and use it in GitHub Desktop.
Internal server error response
import ballerina/http;
# Represents a Error Detail
#
# + message - The message of the error
# + cause - The cause of the error
public type ErrorDetail record {|
string message;
string cause;
|};
# Represents a Internal Server Error Response
#
# + body - The body of the response
public type ConferenceServerError record {|
*http:InternalServerError;
ErrorDetail body;
|};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment