We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/samihalawa/whatsapp-go-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
validation_error.go•427 B
package error
import "net/http"
type ValidationError string
func (err ValidationError) Error() string {
return string(err)
}
// ErrCode will return the error code based on the error data type
func (err ValidationError) ErrCode() string {
return "VALIDATION_ERROR"
}
// StatusCode will return the HTTP status code based on the error data type
func (err ValidationError) StatusCode() int {
return http.StatusBadRequest
}