Created
July 28, 2023 04:53
-
-
Save TharmiganK/0534b12bdf99decc6213e500e3fa87ef to your computer and use it in GitHub Desktop.
Internal server error response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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