replaced 404 error with proper message