Request Errors

A Classroom API error may contain an error code to help you identify the cause and direct users to take the appropriate action.

This page details the possible error codes, grouped by HTTP code. See the reference documentation to determine which methods return any particular error code.

FAILED_PRECONDITION

The Classroom API returns a FAILED_PRECONDITION (HTTP 400) error when the requested action is not permitted because of current some current state.

CourseMemberLimitReached

CourseMemberLimitReached indicates that the requested action would exceed the maximum allowed number of course members. See the Class size limitations section of Invite students to a class for more details.

Possible Action: Describe the cause of the failure and suggest that the user remove unnecessary course members.

CourseNotModifiable

CourseNotModifiable indicates that the relevant course is in a state that doesn't allow its properties to be modified (other than the course state itself).

Possible Action: Prompt the user to change the course to have a modifiable course state. The course state may be changed in the same request that changes other properties.

CourseTeacherLimitReached

CourseTeacherLimitReached indicates that the requested action would exceed the maximum allowed number of course teachers. See the Class size limitations section of Invite teachers to a class for more details.

Possible Action: Describe the cause of the failure and suggest that the user remove unnecessary course teachers.

UserGroupsMembershipLimitReached

UserGroupsMembershipLimitReached indicates that the requested user is already a member of the maximum allowed number of groups. See the Class size limitations section of Invite students to a class for details.

Possible Action: Describe the cause of the failure and suggest that the user leave any courses they're not participating in. The user may consider creating an additional account if they need to participate in more courses.

AttachmentNotVisible

AttachmentNotVisible indicates that one or more attachments specified are not visible to the user, are not of the requested type, or do not exist.

Possible Action: Describe the cause of the failure and suggest that the user recheck the identifiers they have included, and ensure they have the proper permissions to view them.

RESOURCE_EXHAUSTED

The Classroom API returns a RESOURCE_EXHAUSTED (HTTP 429) error when the requested action is not permitted because some resource is exhausted (quota, server capacity, etc.).

UserCourseJoinRateLimitReached

UserCourseJoinRateLimitReached indicates that the user has already joined the maximum allowed number of courses in one day. See the Group Invitations and size section of Understand Groups policies and limits for details.

Possible Action: Describe the cause of the failure and suggest that the user waits one day before joining the course.

Send feedback about...

Classroom API
Classroom API
Need help? Visit our support page.