Use the correct HTTP protocol for responses, props @Fab1en and @jrfnl for the method, updated for readability and so extensions can use it too. Fixes #983