Added error handling route and post schema.