Pergunta de entrevista da empresa LoanCrate

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

Resposta da entrevista

Sigiloso

20 de mai. de 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.