Extend filter to also catch invalid uri requests or with headers with errors