Skip to content

openfoodfacts_proxy.models.v2.product_not_found_response

[docs] module openfoodfacts_proxy.models.v2.product_not_found_response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
from typing import Literal

from pydantic import BaseModel


class V2ProductNotFoundResponse(BaseModel):
    """Response model for GET /api/v2/product/{code} when product is not found."""

    code: str
    status: Literal[0] = 0
    status_verbose: Literal["product not found"] = "product not found"