codes

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2017 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package codes documents the status codes used by classsvc in error responses.

Index

Constants

View Source
const (
	// Nil indicates an unknown error. Should you encounter a Nil status, fret not! It will be reported to the server admin.
	Nil = iota
	// Unauthenticated indicates that no authorization token was passed to the service, or it was invalid or malformed.
	Unauthenticated
	// NotFound indicates that the requested resource could not be found, or the user is not allowed to view it.
	NotFound
	// Forbidden indicates that the user is not allowed to perform an action.
	Forbidden
	// MustSetOwner indicates that the user may not leave a class until they have resigned as next owner, setting somebody else to replace them.
	MustSetOwner
	// UserEnrolled indicates that the user is already enrolled in a class, and thus cannot re-enroll.
	UserEnrolled
	// BadRequest indicates that the request is malformed or invalid.
	BadRequest
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL