Question d’entretien chez LoanCrate

Add error handling to API Endpoints and respond with error status codes.

Réponse à la question d'entretien

Utilisateur anonyme

20 mai 2026

Added tests before coding then implemented code to get tests passing for things like make sure the id passed in a URL param is a positive integer. Albeit maybe not perfectly covering all edge cases. Stumbled on the priority of path parsing for express endpoints. Interviewer said there were 4 parts to the coding exercise and I only reached two, second one being verifying API Keys in headers.