Timber Beams
Error Handling
The API validates all inputs before processing. When validation fails, you'll receive detailed error messages explaining exactly what's wrong.
Error Response Format
All validation errors return HTTP 400 with this structure:
Code
The details array contains one entry per issue, with field (the attribute path) and message (what's wrong).
Common Validation Errors
Type Errors
The most common mistake — passing strings where numbers are expected:
Code
Yes/No fields use strings, not booleans:
Code
Enum Errors
All enum values are case-sensitive:
Code
This applies to all enums — support types ("Pinned" not "pinned"), member type ("Database" not "database"), and temperature ranges. Check the API Reference for valid values.
Cross-Field Errors
Some fields are conditionally required. The most common:
Code
Error: Field 'member' is required when type='Database'
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
VALIDATION_ERROR | 400 | Input validation failed |
SHEET_NOT_FOUND | 404 | Sheet ID doesn't exist |
NOT_FOUND | 404 | Resource not found |
CALCULATION_ERROR | 422 | Calculation failed (check inputs) |
UPSTREAM_ERROR | 500 | Internal server error |
Debugging Tips
- Check the
detailsarray - Each entry tells you which field failed and why - Nested paths -
supports.0.2means "first support, third element (bearing width)" - Case sensitivity - All enum values are case-sensitive (
"Wet"not"wet") - Types matter - Numbers must be numbers, not strings (
14not"14") - Use the API reference - Interactive docs show exact expected types
Next Steps
- API Reference - Interactive endpoint testing with all valid values
Last modified on