mirror of
https://github.com/absmach/magistrala.git
synced 2026-06-23 04:10:28 +00:00
ef5c253c51
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> Signed-off-by: dusan <borovcanindusan1@gmail.com> Co-authored-by: Steve Munene <stevenyaga2014@gmail.com>
45 lines
1.5 KiB
Go
45 lines
1.5 KiB
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package http
|
|
|
|
import "github.com/absmach/supermq/pkg/errors"
|
|
|
|
var (
|
|
// ErrEmptySerialNo indicates that the serial number is empty.
|
|
ErrEmptySerialNo = errors.New("empty serial number provided")
|
|
|
|
// ErrEmptyTTL indicates that the TTL is empty.
|
|
ErrEmptyTTL = errors.New("empty TTL provided")
|
|
|
|
// ErrEmptyToken indicates that the token is empty.
|
|
ErrEmptyToken = errors.New("empty token provided")
|
|
|
|
// ErrEmptyList indicates that entity data is empty.
|
|
ErrEmptyList = errors.New("empty list provided")
|
|
|
|
// ErrMissingEntityID indicates missing entity ID.
|
|
ErrMissingEntityID = errors.New("missing entity ID")
|
|
|
|
// ErrMissingCommonName indicates missing common name.
|
|
ErrMissingCommonName = errors.New("missing common name")
|
|
|
|
// ErrUnsupportedContentType indicates unacceptable or lack of Content-Type.
|
|
ErrUnsupportedContentType = errors.New("unsupported content type")
|
|
|
|
// ErrValidation indicates that an error was returned by the API.
|
|
ErrValidation = errors.New("something went wrong with the request")
|
|
|
|
// ErrInvalidQueryParams indicates invalid query parameters.
|
|
ErrInvalidQueryParams = errors.New("invalid query parameters")
|
|
|
|
// ErrInvalidRequest indicates that the request is invalid.
|
|
ErrInvalidRequest = errors.New("invalid request")
|
|
|
|
// ErrMissingCSR indicates missing csr.
|
|
ErrMissingCSR = errors.New("missing CSR")
|
|
|
|
// ErrMissingPrivKey indicates missing csr.
|
|
ErrMissingPrivKey = errors.New("missing private key")
|
|
)
|