Write integration tests for REST API endpoints.
Write integration tests for this API endpoint: 1. Success response (200/201) validation 2. Validation failure (400) test 3. Auth failure (401) test 4. Permission denied (403) test 5. Not found (404) test Validate status, body, and headers in each test.