refactored project detail route to handle incorrect status and proper er...

...rors