properly raise 404 error when post not fount