FastAPI - Error Handling
Identify the error in this FastAPI code that attempts to use a custom error response model:
```python
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
class ErrorModel(BaseModel):
error: str
app = FastAPI()
@app.get("/items/{item_id}", responses={400: ErrorModel})
async def get_item(item_id: int):
if item_id < 0:
raise HTTPException(status_code=400, detail="Negative ID")
return {"item_id": item_id}
```
