Repository: appwrite/appwrite
File: app/config/errors.php (PHP)

Code before:
        'description' => 'Build with the requested ID is already in progress. Please wait before you can retry.',
        'code' => 400,
    ],
    Exception::BUILD_ALREADY_COMPLETED => [
        'name' => Exception::BUILD_ALREADY_COMPLETED,
        'description' => 'Build with the requested ID is already completed and cannot be canceled.',
        'code' => 400,
    ],

    /** Deployments */
    Exception::DEPLOYMENT_NOT_FOUND => [
        'name' => Exception::DEPLOYMENT_NOT_FOUND,
        'description' => 'Deployment with the requested ID could not be found.',
        'code' => 404,
    ],

    /** Executions */
    Exception::EXECUTION_NOT_FOUND => [
        'name' => Exception::EXECUTION_NOT_FOUND,
        'description' => 'Execution with the requested ID could not be found.',
        'code' => 404,
    ],

    Exception::EXECUTION_IN_PROGRESS => [
        'name' => Exception::EXECUTION_IN_PROGRESS,
        'description' => 'Can\'t delete ongoing execution. Please wait for execution to finish before you can retry.',
        'code' => 400,
    ],

    /** Databases */
    Exception::DATABASE_NOT_FOUND => [
        'name' => Exception::DATABASE_NOT_FOUND,
        'description' => 'Database not found',
        'code' => 404
    ],
    Exception::DATABASE_ALREADY_EXISTS => [
        'name' => Exception::DATABASE_ALREADY_EXISTS,
        'description' => 'Database already exists',
        'code' => 409
    ],
    Exception::DATABASE_TIMEOUT => [
        'name' => Exception::DATABASE_TIMEOUT,
        'description' => 'Database timed out. Try adjusting your queries or adding an index.',
        'code' => 408
    ],

    /** Collections */
    Exception::COLLECTION_NOT_FOUND => [
        'name' => Exception::COLLECTION_NOT_FOUND,
        'description' => 'Collection with the requested ID could not be found.',
        'code' => 404,

Review comment (suggestion):
```suggestion
        'description' => 'Can\'t delete ongoing execution. Please wait for execution to finish before deleting it.',
```

Code after:
        'description' => 'Build with the requested ID is already in progress. Please wait before you can retry.',
        'code' => 400,
    ],
    Exception::BUILD_ALREADY_COMPLETED => [
        'name' => Exception::BUILD_ALREADY_COMPLETED,
        'description' => 'Build with the requested ID is already completed and cannot be canceled.',
        'code' => 400,
    ],

    /** Deployments */
    Exception::DEPLOYMENT_NOT_FOUND => [
        'name' => Exception::DEPLOYMENT_NOT_FOUND,
        'description' => 'Deployment with the requested ID could not be found.',
        'code' => 404,
    ],

    /** Executions */
    Exception::EXECUTION_NOT_FOUND => [
        'name' => Exception::EXECUTION_NOT_FOUND,
        'description' => 'Execution with the requested ID could not be found.',
        'code' => 404,
    ],

    Exception::EXECUTION_IN_PROGRESS => [
        'name' => Exception::EXECUTION_IN_PROGRESS,
        'description' => 'Can\'t delete ongoing execution. Please wait for execution to finish before deleting it.',
        'code' => 400,
    ],

    /** Databases */
    Exception::DATABASE_NOT_FOUND => [
        'name' => Exception::DATABASE_NOT_FOUND,
        'description' => 'Database not found',
        'code' => 404
    ],
    Exception::DATABASE_ALREADY_EXISTS => [
        'name' => Exception::DATABASE_ALREADY_EXISTS,
        'description' => 'Database already exists',
        'code' => 409
    ],
    Exception::DATABASE_TIMEOUT => [
        'name' => Exception::DATABASE_TIMEOUT,
        'description' => 'Database timed out. Try adjusting your queries or adding an index.',
        'code' => 408
    ],

    /** Collections */
    Exception::COLLECTION_NOT_FOUND => [
        'name' => Exception::COLLECTION_NOT_FOUND,
        'description' => 'Collection with the requested ID could not be found.',
        'code' => 404,