Rename the 'mode' parameter to 'status' in GET /invoices. Fix the error handling in DELETE /invoices/{id}.