Skip to main content
Glama
validation_error.go427 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 }

Latest Blog Posts

MCP directory API

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