Skip to main content
9

FAILED_PRECONDITION

ActiveHTTP 400

The operation was rejected because the system is not in a state required for the operation. For example, deleting a directory that is non-empty, or removing rmdir on a non-empty directory. Unlike INVALID_ARGUMENT, this might succeed in a different system state.

Description

FAILED_PRECONDITION indicates the request is valid but the system state prevents execution. Retrying without changing state will fail again – the client must fix the system state first.

Common causes

  • Deleting non-empty container
  • Operation requires resource to be in specific state
  • Missing dependency or prerequisite

HTTP equivalent

HTTP 400 – View status code reference →