Quickly investigate HTTP status codes with Mozilla, with telescope, fzf-lua, and snacks.nvim integrations.
Note
Due to GitHub's historic unreliability, active development is hosted on
Forgejo.
GitHub is maintained as a read-only mirror.
See :help http-codes-forgejo for canonical project links.
With vim.pack (Neovim 0.12+):
vim.pack.add({
'https://git.barrettruth.com/barrettruth/http-codes.nvim',
})Or via luarocks:
luarocks install http-codes.nvim
One of:
Install one picker backend first, then http-codes.nvim so the command has a UI to open.
vim.pack.add({
'https://github.com/ibhagwan/fzf-lua',
'https://git.barrettruth.com/barrettruth/http-codes.nvim',
})Set the backend before http-codes.nvim loads if you want deterministic picker selection.
vim.g.http_codes = {
use = 'fzf-lua',
}Open the picker when you need to inspect a response code; type 404, 429, or 500, then press <CR> to open the selected MDN page.
:HTTPCodesBind the <Plug> mapping if you look up status codes often.
vim.keymap.set('n', '<leader>hc', '<Plug>(http-codes-pick)'):help http-codes